diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e228c77..174d772 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,31 +7,24 @@ env: CARGO_TERM_COLOR: always jobs: - build: - strategy: - matrix: - os: [windows-latest, ubuntu-latest] - - runs-on: ${{ matrix.os }} - + windows: + runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - components: clippy - override: true - - uses: Swatinem/rust-cache@v1 - - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --verbose - - name: Annotate commit with clippy warnings - uses: actions-rs/clippy-check@v1 + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rustup component add clippy + - uses: Swatinem/rust-cache@v2 + - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features \ No newline at end of file + args: --all-features + - name: Run cargo fmt + run: cargo fmt --all -- --check + - name: Run tests + run: cargo test --verbose \ No newline at end of file