diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5bc9e5..3c2c647 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,25 +11,24 @@ env: jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly with: - toolchain: stable components: clippy, rustfmt - override: true - - name: rustfmt - uses: mbrobbel/rustfmt-check@0.2.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - name: clippy - uses: actions-rs/clippy-check@v1.0.5 + uses: clechasseur/rs-clippy-check@v3 + - name: rustfmt + uses: mbrobbel/rustfmt-check@0.8.1 with: token: ${{ secrets.GITHUB_TOKEN }} - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose