Skip to content

Commit f6bcb2f

Browse files
committed
build: add npm-test action
1 parent f66cc33 commit f6bcb2f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/npm-test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: npm-test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "master" ]
7+
pull_request:
8+
branches: [ "master" ]
9+
10+
jobs:
11+
test:
12+
strategy:
13+
matrix:
14+
include:
15+
- os: windows-latest
16+
- os: ubuntu-latest
17+
- os: macos-latest
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20.x
24+
cache: 'npm'
25+
- uses: dtolnay/rust-toolchain@v1
26+
with:
27+
toolchain: stable
28+
- run: npm ci
29+
- run: xvfb-run -a npm test
30+
working-directory: ./vscode-extension
31+
if: runner.os == 'Linux'
32+
- run: npm test
33+
working-directory: ./vscode-extension
34+
if: runner.os != 'Linux'

0 commit comments

Comments
 (0)