test adjustment #296
This file contains hidden or 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 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
test-linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
VSCODE_VERSION: ['stable', 'minimum'] | |
experimental: [false] | |
include: | |
- VSCODE_VERSION: 'insiders' | |
experimental: true | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
- name: Install | |
run: npm install | |
- name: Compile | |
run: npm run compile | |
- name: Webpack # test does not use it, but we are testing the webpack creation | |
run: | | |
npm run webpack | |
ls -all out/dist | |
- name: ESLint | |
run: npm run eslint | |
- name: Test | |
run: | | |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
sleep 3 | |
npm test | |
env: | |
DISPLAY: ':99.0' | |
test-windows: | |
name: Windows | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
VSCODE_VERSION: ['stable', 'minimum'] | |
experimental: [false] | |
include: | |
- VSCODE_VERSION: 'insiders' | |
experimental: true | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
- name: Install | |
run: npm install | |
- name: Compile | |
run: npm run compile | |
- name: ESLint | |
run: npm run eslint | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Test | |
run: npm test | |
test-mac: | |
name: MacOS | |
runs-on: macos-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
VSCODE_VERSION: ['stable', 'minimum'] | |
experimental: [false] | |
include: | |
- VSCODE_VERSION: 'insiders' | |
experimental: true | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'npm' | |
- name: Install | |
run: npm install | |
- name: Compile | |
run: npm run compile | |
- name: ESLint | |
run: npm run eslint | |
- name: Test | |
run: npm test |