Skip to content

Commit

Permalink
Move fmt check into test job
Browse files Browse the repository at this point in the history
Reduce the number of jobs for simplicity
  • Loading branch information
swsnr committed Apr 30, 2023
1 parent 59f56dc commit 4ef7892
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ on:


jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check

cargo-deny:
runs-on: ubuntu-latest
steps:
Expand All @@ -46,13 +37,15 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: clippy
components: clippy,rustfmt
- run: cargo test
# Run tests with fixed hostname on Unix systems
- run: sudo hostname hostname-for-testing
if: "!contains(matrix.os, 'windows')"
- if: "!contains(matrix.os, 'windows')"
run: cargo test -- --ignored
- if: matrix.rust == 'stable'
run: cargo clippy --all-targets
- run: cargo test -- --ignored
if: "!contains(matrix.os, 'windows')"
- run: cargo clippy --all-targets
if: matrix.rust == 'stable'
- run: cargo fmt --check
if: matrix.rust == 'stable'
- run: cargo doc

0 comments on commit 4ef7892

Please sign in to comment.