@@ -3,46 +3,46 @@ name: Test Code
33on :
44 pull_request :
55 branches :
6- - main
6+ - main
77 push :
88 branches :
9- - main
9+ - main
1010
1111jobs :
1212 test-code :
13- runs-on : ubuntu-18 .04
13+ runs-on : ubuntu-20 .04
1414
1515 steps :
16- - name : Checkout Code
17- uses : actions/checkout@v2
18-
19- - name : Cache cargo registry
20- uses : actions/cache@v2
21- with :
22- path : |
23- ~/.cargo/registry
24- ~/.cargo/git
25- target
26- key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
27-
28- - name : Install toolchain
29- uses : actions-rs/toolchain@v1
30- with :
31- profile : minimal
32- toolchain : nightly-2021-01-26
33- components : rustfmt, clippy
34- target : wasm32-unknown-unknown
35- override : true
36- default : true
37-
38- - name : Check Code Formatting
39- run : cargo fmt -- --check
40-
41- - name : Lint Code
42- uses : actions-rs/clippy-check@v1
43- with :
44- token : ${{ secrets.GITHUB_TOKEN }}
45- args : --all-targets
46-
47- - name : Test Code
48- run : cargo test --all
16+ - name : Checkout Code
17+ uses : actions/checkout@v2
18+
19+ - name : Cache cargo registry
20+ uses : actions/cache@v2
21+ with :
22+ path : |
23+ ~/.cargo/registry
24+ ~/.cargo/git
25+ target
26+ key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
27+
28+ - name : Install toolchain
29+ uses : actions-rs/toolchain@v1
30+ with :
31+ profile : minimal
32+ toolchain : nightly-2021-04-18
33+ components : rustfmt, clippy
34+ target : wasm32-unknown-unknown
35+ override : true
36+ default : true
37+
38+ - name : Check Code Formatting
39+ run : cargo fmt -- --check
40+
41+ - name : Lint Code
42+ uses : actions-rs/clippy-check@v1
43+ with :
44+ token : ${{ secrets.GITHUB_TOKEN }}
45+ args : --all-targets
46+
47+ - name : Test Code
48+ run : cargo test --all
0 commit comments