Remove NatUnit and Stow-log watchers #118
Workflow file for this run
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 | |
tags: | |
- "v*" | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- run: npm install | |
- run: xvfb-run -a npm test | |
if: runner.os == 'Linux' | |
- run: npm test | |
if: runner.os != 'Linux' | |
publish: | |
needs: [build] | |
if: ${{ startsWith(github.event.ref, 'refs/tags/v') && needs.build.result == 'success' }} | |
runs-on: ubuntu-latest | |
name: Release Extension | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Build | |
run: npm ci | |
- name: Downlaod Language Server | |
run: npx gulp download-server | |
- name: Downlaod JRE Windows | |
run: npx gulp download-jre --platform win32 | |
- name: Package Windows extension | |
run: npx vsce package --target win32-x64 | |
- name: Downlaod JRE MacOS | |
run: npx gulp download-jre --platform darwin | |
- name: Package MacOS extension | |
run: npx vsce package --target darwin-x64 | |
- name: Downlaod JRE Linux | |
run: npx gulp download-jre --platform linux | |
- name: Package Linux extension | |
run: npx vsce package --target linux-x64 | |
- name: Publish extensions | |
run: npx vsce publish --pat ${{ secrets.VS_MARKETPLACE_TOKEN }} --packagePath vscode-natural-*.vsix |