locals, not local! #210
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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Primary | |
on: | |
push: | |
branches: [ main, experimental ] | |
pull_request: | |
branches: [ main, experimental ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.JS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Install dependencies | |
run: | | |
npm install | |
npm install -g vsce | |
- name: Package Extension | |
run: vsce package -o extension.vsix | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Extension | |
path: extension.vsix | |
test: | |
name: Test | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Install dependencies | |
run: npm install | |
- name: Run headless test | |
uses: GabrielBB/xvfb-action@v1.0 | |
with: | |
run: npm test |