Merge pull request #214 from richzwart/master #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |