diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index e9020c1..51b44c5 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -16,6 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions-rs/audit-check@v1 + - uses: rustsec/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b25068b..144422c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,18 +16,11 @@ jobs: uses: actions/checkout@v3 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - components: rustfmt + uses: dtolnay/rust-toolchain@stable - name: Check Formatting - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + run: cargo fmt --all -- --check + clippy: name: Clippy @@ -37,12 +30,7 @@ jobs: uses: actions/checkout@v3 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true - components: rustfmt + uses: dtolnay/rust-toolchain@stable - name: Cache cargo registry, index and build directory uses: actions/cache@v3 @@ -54,10 +42,9 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Clippy Linting - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + run: cargo clippy --all-features -- -Dclippy::all -Dclippy::pedantic + - name: Clippy Test Linting + run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic test: @@ -74,11 +61,7 @@ jobs: uses: actions/checkout@v3 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - profile: minimal - override: true + uses: dtolnay/rust-toolchain@stable - name: Cache cargo registry, index and build directory uses: actions/cache@v3 @@ -90,6 +73,4 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Run Tests - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test