diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index fa843e1a..a0fe5a0f 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -7,12 +7,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Upload Pages Artifact id: artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: docs deploy: @@ -27,4 +27,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 928617d2..0a6871ae 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,16 +12,9 @@ jobs: name: Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.80.0 - override: true - - uses: actions-rs/cargo@v1 - with: - command: check - args: --all --all-features --locked + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.80 + - run: cargo check --all --all-features --locked test: name: Test Suite @@ -30,39 +23,19 @@ jobs: os: [ubuntu-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.80.0 - override: true + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.80 - run: cargo install wasm-pack --version 0.12.1 --locked - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all --no-default-features --locked - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all --all-features --locked + - run: cargo test --all --no-default-features --locked + - run: cargo test --all --all-features --locked - run: wasm-pack test --node --all --locked fmt: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: 1.80.0 - override: true + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.80 - run: rustup component add rustfmt clippy - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features -- --deny warnings + - run: cargo fmt --all -- --check + - run: cargo clippy --all-features -- --deny warnings