-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (35 loc) · 922 Bytes
/
tests.yml
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
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
os: [windows-latest]
node-version: [16.x]
# node-version: [16.x, 18.x]
runs-on: ${{ matrix.os }}
env:
working-directory: ./extension/
NAB_DISABLE_TELEMETRY: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
working-directory: ${{env.working-directory}}
- name: Run tests
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test
working-directory: ${{env.working-directory}}
- name: Test CLI functions
shell: pwsh
run: |
& "./.github/workflows/scripts/cli-test.ps1"