Update README.md #23
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: VS Code extension CI | |
on: | |
push: | |
branches: | |
- master | |
#tags: | |
# - v1 | |
# file paths to consider in the event. Optional; defaults to all. | |
#paths: | |
# - 'test/*' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 3 | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
node-version: [16] | |
steps: | |
# actions/checkout | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v3 | |
# actions/setup-node | |
# https://github.com/actions/setup-node | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm install | |
- name: Start xvfb only if it's Linux | |
if: startsWith(matrix.os,'ubuntu') | |
run: | | |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
echo ">>> Started xvfb" | |
shell: bash | |
- name: npm install, build, and test | |
run: | | |
npm test | |
env: | |
DISPLAY: ':99.0' # Only necessary for linux tests |