diff --git a/.github/workflows/badge.yml b/.github/workflows/badge.yml index 503d824..fbc3b01 100644 --- a/.github/workflows/badge.yml +++ b/.github/workflows/badge.yml @@ -11,14 +11,8 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --all --features=sync + run: cargo test --all --features=sync diff --git a/.github/workflows/check-platforms.yml b/.github/workflows/check-platforms.yml index 5656988..60051c0 100644 --- a/.github/workflows/check-platforms.yml +++ b/.github/workflows/check-platforms.yml @@ -15,14 +15,8 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --features=sync + run: cargo check --all --features=sync diff --git a/.github/workflows/check-targets.yml b/.github/workflows/check-targets.yml index 1d6bb3b..d779e47 100644 --- a/.github/workflows/check-targets.yml +++ b/.github/workflows/check-targets.yml @@ -23,15 +23,10 @@ jobs: - x86_64-unknown-linux-gnu - wasm32-unknown-unknown steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - profile: minimal - toolchain: stable target: ${{ matrix.target }} - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --features=sync + run: cargo check --all --features=sync diff --git a/.github/workflows/check-toolchains.yml b/.github/workflows/check-toolchains.yml index 6955fdd..fd9c0e8 100644 --- a/.github/workflows/check-toolchains.yml +++ b/.github/workflows/check-toolchains.yml @@ -15,14 +15,10 @@ jobs: matrix: rust-toolchain: [stable, nightly] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install ${{ matrix.rust-toolchain }} toolchain - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - profile: minimal toolchain: ${{ matrix.rust-toolchain }} - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --features=sync + run: cargo check --all --features=sync diff --git a/.github/workflows/fast-pr-check.yml b/.github/workflows/fast-pr-check.yml index 7f4d8f3..af0f91e 100644 --- a/.github/workflows/fast-pr-check.yml +++ b/.github/workflows/fast-pr-check.yml @@ -15,14 +15,8 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable + uses: actions-rust-lang/setup-rust-toolchain@v1 - name: Run cargo test - uses: actions-rs/cargo@v1 - with: - command: test - args: --all --features sync + run: cargo test --all --features=sync diff --git a/.github/workflows/lints.yml b/.github/workflows/lints.yml index c2b05c4..de23e54 100644 --- a/.github/workflows/lints.yml +++ b/.github/workflows/lints.yml @@ -15,30 +15,27 @@ jobs: fmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install nightly toolchain - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - name: Ensure rustfmt is installed + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - profile: minimal toolchain: nightly - - name: Run cargo fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + components: rustfmt + - name: Rustfmt check + uses: actions-rust-lang/rustfmt@v1 clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install nightly toolchain with clippy available - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - name: Ensure clippy is installed + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - profile: minimal toolchain: nightly - components: rustfmt + components: clippy - name: Run cargo clippy - uses: actions-rs/clippy-check@v1 + uses: giraffate/clippy-action@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all --all-features -- -D warnings + github_token: ${{ secrets.GITHUB_TOKEN }} + clippy_flags: --all --all-features -- -D warnings + reporter: 'github-pr-review' diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index e5fd3a5..f8b74af 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,8 +1,10 @@ +name: release-please + on: push: branches: - main -name: release-please + jobs: release-please: runs-on: ubuntu-latest @@ -10,4 +12,4 @@ jobs: - uses: google-github-actions/release-please-action@v3 with: release-type: node - package-name: release-please-action \ No newline at end of file + package-name: release-please-action diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index af66769..917fa16 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -15,7 +15,7 @@ jobs: if: ${{ github.event.label.name == 'ready-to-merge' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/audit-check@v1 + - uses: actions/checkout@v4 + - uses: actions-rust-lang/audit@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} + TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-features.yml b/.github/workflows/test-features.yml index 2e33be0..b57a3d1 100644 --- a/.github/workflows/test-features.yml +++ b/.github/workflows/test-features.yml @@ -17,14 +17,10 @@ jobs: sync: ["", "sync,"] nightly: ["", "nightly,"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install nightly toolchain - uses: actions-rs/toolchain@v1 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - profile: minimal toolchain: nightly - - name: Run cargo check - uses: actions-rs/cargo@v1 - with: - command: test - args: --all --features=${{ matrix.std }}${{ matrix.sync }}${{ matrix.nightly }} + - name: Run cargo test + run: cargo test --all --features=${{ matrix.std }}${{ matrix.sync }}${{ matrix.nightly }}