[CI] run fmt checks with nightly toolchain (#1780)
This commit is contained in:
parent
49c494aa6c
commit
2eeb93567c
3
.github/workflows/rust.yml
vendored
3
.github/workflows/rust.yml
vendored
@ -247,9 +247,10 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: stable
|
||||
toolchain: nightly
|
||||
components: rustfmt
|
||||
- run: find ${{ matrix.path }} -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo fmt --manifest-path {} -- --check
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: find ${{ matrix.path }} -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo build --manifest-path {}
|
||||
- run: find ${{ matrix.path }} -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo test --manifest-path {}
|
||||
- run: ${{'! '}}${{ '[ -d "' }}${{ matrix.path }}${{ '/service" ]' }} || find ${{ matrix.path }}/service -type f -name 'Cargo.toml' -print0 | xargs -t -0 -I {} cargo test --manifest-path {} --features mock
|
||||
|
Loading…
x
Reference in New Issue
Block a user