-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1014 Bytes
/
npm-test.yml
File metadata and controls
40 lines (39 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: npm-test
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
strategy:
matrix:
include:
# - os: windows-latest # snapshots are different on Windows, so this should be disabled
- os: ubuntu-latest
- os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: PNPM install
uses: pnpm/action-setup@v4
with:
version: 9
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- run: xvfb-run -a npm test
working-directory: ./vscode-extension
env:
TEST_OVERWRITE_SNAPSHOT: display
if: runner.os == 'Linux'
- run: npm test
working-directory: ./vscode-extension
env:
TEST_OVERWRITE_SNAPSHOT: display
if: runner.os != 'Linux'