Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 52f1653

Browse files
committed
chore: another attempt at getting npm/nushell installed
1 parent 9000695 commit 52f1653

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/rust.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,32 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111
RUST_BACKTRACE: 1
1212

1313
jobs:
1414
build:
15-
16-
container: rust:alpine
15+
container: rust:1-slim
1716
runs-on: ubuntu-latest
1817

1918
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

0 commit comments

Comments
 (0)