Summary: This diff switches to `dtolnay/rust-toolchain@stable` since `actions-rs/toolchain` is **NOT maintained** and bumps `actions/checkout@v3.5.3` > **Note**: > `uses: dtolnay/rust-toolchain@stable` > The selection of Rust toolchain is made based on the particular `rev` of this Action being requested. For example `dtolnay/rust-toolchain@nightly` pulls in the `nightly` Rust toolchain, while `dtolnay/rust-toolchain@1.42.0` pulls in `1.42.0`. ### Ref.: - `actions-rs/toolchain` is **NOT Maintained**, issue: https://github.com/actions-rs/toolchain/issues/216 - `dtolnay/rust-toolchain@stable` usage note: https://github.com/dtolnay/rust-toolchain#example-workflow - `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3 ## Changelog: [GENERAL] [SECURITY] - [Actions] `packer` - Switch to `dtolnay/rust-toolchain@stable` & bump `actions/checkout@v3.5.3` Pull Request resolved: https://github.com/facebook/flipper/pull/4878 Test Plan: - Workflow should run and work as usual. Reviewed By: lblasa Differential Revision: D47056977 Pulled By: passy fbshipit-source-id: 68023fcce355831314af2f31d514ed95efb7788c
25 lines
788 B
YAML
25 lines
788 B
YAML
name: Packer
|
|
# This action runs on 'git push' and PRs
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3.5.3
|
|
- name: Setup toolchain
|
|
uses: dtolnay/rust-toolchain@stable
|
|
# The selection of Rust toolchain is made based on the particular '@rev'
|
|
# of this Action being requested. For example "dtolnay/rust-toolchain@nightly"
|
|
# pulls in the nightly Rust toolchain, while "dtolnay/rust-toolchain@1.42.0"
|
|
# pulls in '1.42.0'.
|
|
- name: Test
|
|
run: cd packer && cargo test
|
|
- name: Format
|
|
run: cd packer && cargo fmt -- --check
|
|
continue-on-error: true
|
|
- name: Lint
|
|
run: cd packer && cargo clippy -- -Dwarnings
|
|
continue-on-error: true
|