Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Nov 5, 2024
1 parent 262cb86 commit a1a616b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 41 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -27,4 +27,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
49 changes: 11 additions & 38 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- run: cargo check --all --all-features --locked

test:
name: Test Suite
Expand All @@ -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/[email protected]
- 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/[email protected]
- 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

0 comments on commit a1a616b

Please sign in to comment.