-
-
Notifications
You must be signed in to change notification settings - Fork 81
53 lines (46 loc) · 1.21 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Continuous Integration
on:
pull_request:
branches:
- master
workflow_dispatch:
workflow_call:
jobs:
js-test-and-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm clean-install
- run: npm run lint
- run: npm run test
rust-linter:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-25
- uses: Swatinem/rust-cache@v2
- run: mkdir dist
- name: Linter
run: |-
rustup component add rustfmt
cargo fmt -- --check
- name: Clippy
run: |-
rustup component add clippy
cargo clippy --locked --all-targets -- -D warnings
rust-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-06-25
- uses: Swatinem/rust-cache@v2
- run: mkdir dist
- run: cargo test --locked --verbose