This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -2,32 +2,32 @@ name: Rust
2
2
3
3
on :
4
4
push :
5
- branches : [ "main" ]
5
+ branches : ["main"]
6
6
pull_request :
7
- branches : [ "main" ]
7
+ branches : ["main"]
8
8
9
9
env :
10
10
CARGO_TERM_COLOR : always
11
11
RUST_BACKTRACE : 1
12
12
13
13
jobs :
14
14
build :
15
-
16
- container : rust:alpine
15
+ container : rust:1-slim
17
16
runs-on : ubuntu-latest
18
17
19
18
steps :
20
- - uses : actions/checkout@v3
21
- - name : dependencies
22
- run : |
23
- apk update
24
- apk add npm
25
- npm install --global nushell
26
- - name : Build
27
- run : cargo build --all-features --all-targets --workspace
28
- - name : Run formatter
29
- run : cargo fmt -- --check
30
- - name : Run linter
31
- run : cargo clippy --all-features --all-targets --workspace
32
- - name : Run tests
33
- run : cargo test --all-features --all-targets --workspace
19
+ - uses : actions/checkout@v3
20
+ - uses : actions/setup-node@v3
21
+ with :
22
+ node-version : current
23
+ - name : dependencies
24
+ run : |
25
+ npm install --global nushell
26
+ - name : Build
27
+ run : cargo build --all-features --all-targets --workspace
28
+ - name : Run formatter
29
+ run : cargo fmt -- --check
30
+ - name : Run linter
31
+ run : cargo clippy --all-features --all-targets --workspace
32
+ - name : Run tests
33
+ run : cargo test --all-features --all-targets --workspace
You can’t perform that action at this time.
0 commit comments