Skip to content

Commit 7c7fc30

Browse files
committed
Github: Simplify CI
Run CI via just check
1 parent 61aa9ad commit 7c7fc30

File tree

1 file changed

+4
-44
lines changed

1 file changed

+4
-44
lines changed

.github/workflows/test.yml

+4-44
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Check flake
2020
run: nix flake check --all-systems
2121

22-
test-wasm:
23-
name: Test WASM
22+
test-stable:
23+
name: Test - stable toolchain
2424
runs-on: ubuntu-latest
2525

2626
steps:
@@ -35,46 +35,6 @@ jobs:
3535
- name: Enable Rust cache
3636
uses: Swatinem/rust-cache@v2
3737

38-
- name: Run WASM tests
38+
- name: Run test script
3939
run: |
40-
nix develop --command bash -c "wasm-pack test --headless --firefox"
41-
42-
clippy:
43-
name: Clippy
44-
runs-on: ubuntu-latest
45-
46-
steps:
47-
- name: Checkout
48-
uses: actions/checkout@v3
49-
50-
- name: Install nix
51-
uses: cachix/install-nix-action@v24
52-
with:
53-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
54-
55-
- name: Enable Rust cache
56-
uses: Swatinem/rust-cache@v2
57-
58-
- name: Run clippy
59-
run: |
60-
nix develop --command bash -c "cargo clippy --all-targets -- --deny warnings"
61-
62-
rustfmt:
63-
name: Rustfmt
64-
runs-on: ubuntu-latest
65-
66-
steps:
67-
- name: Checkout
68-
uses: actions/checkout@v3
69-
70-
- name: Install nix
71-
uses: cachix/install-nix-action@v24
72-
with:
73-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
74-
75-
- name: Enable Rust cache
76-
uses: Swatinem/rust-cache@v2
77-
78-
- name: Run rustfmt
79-
run: |
80-
nix develop --command bash -c "cargo fmt --all -- --check"
40+
nix develop --command bash -c "just check"

0 commit comments

Comments
 (0)