@@ -15,36 +15,21 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout sources
18
- uses : actions/checkout@v3
18
+ uses : actions/checkout@v4
19
19
- name : Install stable toolchain
20
- uses : actions-rs/toolchain@v1
21
- with :
22
- profile : minimal
23
- toolchain : stable
20
+ uses : dtolnay/rust-toolchain@stable
24
21
- name : Enable caching
25
22
uses : Swatinem/rust-cache@v2
26
23
with :
27
24
workspaces : swc
28
25
- name : Run cargo check
29
- uses : actions-rs/cargo@v1
30
- with :
31
- command : check
32
- args : --manifest-path swc/Cargo.toml
26
+ run : cargo check --manifest-path swc/Cargo.toml
33
27
- name : Run cargo test
34
- uses : actions-rs/cargo@v1
35
- with :
36
- command : test
37
- args : --manifest-path swc/Cargo.toml
28
+ run : cargo test --manifest-path swc/Cargo.toml
38
29
- name : Run cargo fmt
39
- uses : actions-rs/cargo@v1
40
- with :
41
- command : fmt
42
- args : --manifest-path swc/Cargo.toml --all -- --check
30
+ run : cargo fmt --manifest-path swc/Cargo.toml --all -- --check
43
31
- name : Run cargo clippy
44
- uses : actions-rs/cargo@v1
45
- with :
46
- command : clippy
47
- args : --manifest-path swc/Cargo.toml -- -D warnings
32
+ run : cargo clippy --manifest-path swc/Cargo.toml -- -D warnings
48
33
49
34
wasm :
50
35
name : Wasm plugin tests
@@ -55,17 +40,17 @@ jobs:
55
40
runs-on : ${{ matrix.os }}
56
41
steps :
57
42
- name : Checkout sources
58
- uses : actions/checkout@v3
43
+ uses : actions/checkout@v4
59
44
- name : Add wasm32-wasi target
60
45
run : rustup target add wasm32-wasi
61
46
- name : Enable caching
62
47
uses : Swatinem/rust-cache@v2
63
48
with :
64
49
workspaces : swc
65
- - name : Use Node.js 16
66
- uses : actions/setup-node@v3
50
+ - name : Use Node.js 20
51
+ uses : actions/setup-node@v4
67
52
with :
68
- node-version : 16
53
+ node-version : 20
69
54
- name : Install NPM dependencies
70
55
run : npm i
71
56
- name : Build JS
0 commit comments