diff --git a/.github/workflows/wot-serve.yml b/.github/workflows/wot-serve.yml index 82044ff..da99dfe 100644 --- a/.github/workflows/wot-serve.yml +++ b/.github/workflows/wot-serve.yml @@ -16,25 +16,22 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install stable - uses: actions-rs/toolchain@v1 + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true components: clippy, rustfmt - name: Run rustfmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check --verbose + run: + cargo fmt --all -- --check --verbose - name: Run cargo clippy - uses: actions-rs/clippy-check@v1 + uses: giraffate/clippy-action@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-targets --tests --benches -- -D warnings + github_token: ${{ secrets.GITHUB_TOKEN }} + clippy_flags: --all-targets -- -D warnings + reporter: github-pr-review build-test: @@ -44,11 +41,9 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Build run: cargo build --verbose --tests --benches @@ -67,11 +62,9 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust stable - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Install grcov env: @@ -178,12 +171,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Install stable - uses: actions-rs/toolchain@v1 + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable with: - profile: minimal toolchain: stable - override: true - name: Install grcov env: