test: add formatting
This commit is contained in:
parent
8ed05acb5d
commit
bbe2df6737
1 changed files with 12 additions and 6 deletions
|
@ -4,10 +4,16 @@ jobs:
|
|||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||
- uses: https://github.com/Swatinem/rust-cache@v2
|
||||
with:
|
||||
shared-key: forge_automate_amd64
|
||||
save-if: ${{ github.ref = 'refs/heads/main' }}
|
||||
|
||||
- uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test
|
||||
|
||||
formatting:
|
||||
name: cargo fmt
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
components: rustfmt
|
||||
- name: Rustfmt Check
|
||||
uses: https://github.com/actions-rust-lang/rustfmt@v1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue