forked from eirikpre/VSCode-SystemVerilog
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (53 loc) · 1.46 KB
/
test.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test and QA
on:
push:
branches:
- 'master'
pull_request:
branches:
- '**'
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
name: Run extension tests (Node.js 16 on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- name: Clone vscode-systemverilog
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
id: node
with:
node-version: '16'
- name: Install NPM dependencies
run: npm ci --production=false --unsafe-perm
- name: Compile extension
run: npm run compile
- name: Create bundle
run: npm run webpack
- name: Run headless tests and collect coverage
uses: GabrielBB/xvfb-action@v1
with:
run: npm run coverage
working-directory: ./
options: ''
- name: Verify files
if: runner.os == 'Linux'
run: ls -l dist/client/extension.js dist/server/server.js coverage/index.html
qa:
name: Run quality checks
runs-on: ubuntu-latest
steps:
- name: Clone vscode-systemverilog
uses: actions/checkout@v2
- name: Install NPM dependencies
run: npm ci --production=false --unsafe-perm
- name: Compile ANTLR
run: npm run compile:antlr4ts
- name: Run ESLint
run: npm run lint
- name: Run Prettier
run: npm run pretty:check