diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 75422a3..a9a9098 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -11,17 +11,13 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + uses: dtolnay/rust-toolchain@stable - name: Run cargo check - uses: actions-rs/cargo@v1 + uses: clechasseur/rs-cargo@v2 with: command: check @@ -33,17 +29,13 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install nightly toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true + uses: dtolnay/rust-toolchain@nightly - name: Run cargo test - uses: actions-rs/cargo@v1 + uses: clechasseur/rs-cargo@v2 with: command: test args: --no-default-features --features dev @@ -56,17 +48,13 @@ jobs: os: [ubuntu-latest, windows-latest] steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install nightly toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true + uses: dtolnay/rust-toolchain@nightly - name: Run cargo test - uses: actions-rs/cargo@v1 + uses: clechasseur/rs-cargo@v2 with: command: test args: --all-features @@ -78,17 +66,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install nightly toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true + uses: dtolnay/rust-toolchain@nightly - name: Run cargo doc - uses: actions-rs/cargo@v1 + uses: clechasseur/rs-cargo@v2 with: command: doc args: --all-features @@ -98,18 +82,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install nightly toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@nightly with: - profile: minimal - toolchain: nightly - override: true components: rustfmt - name: Run cargo fmt - uses: actions-rs/cargo@v1 + uses: clechasseur/rs-cargo@v2 with: command: fmt args: -- --check @@ -119,16 +100,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 + - name: Install nightly toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@nightly with: - toolchain: nightly components: clippy - override: true - - uses: actions-rs/clippy-check@v1 + + - uses: clechasseur/rs-cargo@v2 with: - token: ${{ secrets.GITHUB_TOKEN }} + command: clippy args: --all-features miri: @@ -136,17 +117,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get latest toolchain version with miri run: echo "TOOLCHAIN=$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)" >> $GITHUB_ENV - name: Install latest nightly toolchain with miri - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: nightly-${{ env.TOOLCHAIN }} - override: true components: rust-src, miri - name: Run cargo miri test diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index c80842d..3cbc4f3 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -11,13 +11,14 @@ jobs: options: --security-opt seccomp=unconfined steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate code coverage run: | cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml - name: Upload to codecov.io - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v4 with: + token: ${{secrets.CODECOV_TOKEN}} fail_ci_if_error: true