Update issue templates #171
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '16' | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Lint | |
run: npm run lint | |
- name: Run Tests (macOS & Windows) | |
run: npm run test | |
if: runner.os != 'Linux' | |
- name: Run Tests (Linux) | |
run: xvfb-run -a npm run test | |
if: runner.os == 'Linux' | |
- name: Build Production | |
run: npm run build:production | |
if: runner.os == 'Linux' | |
- name: Package VSIX | |
run: npm run package | |
if: runner.os == 'Linux' | |
- name: Upload Artifact | |
if: runner.os == 'Linux' | |
uses: actions/[email protected] | |
with: | |
name: test-vscode | |
path: release.vsix | |
- name: Publish Artifact | |
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest' | |
run: npm run deploy | |
env: | |
VSCE_PAT: ${{secrets.VSCE_PAT}} |