Skip to content

Merge pull request #239 from joecrop/rel-0-13-10 #225

Merge pull request #239 from joecrop/rel-0-13-10

Merge pull request #239 from joecrop/rel-0-13-10 #225

Workflow file for this run

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