start acceptance tests #183
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: | |
pull_request: | |
release: | |
types: | |
- created | |
jobs: | |
all: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
working-directory: vscode | |
- name: Run js unit tests | |
working-directory: vscode | |
run: npm test | |
# This isn't strictly necessary, but gives better | |
# build error output than npm run e2e:setup | |
- name: Run webpack | |
working-directory: vscode | |
run: npm run webpack | |
- name: build | |
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' | |
working-directory: vscode | |
run: | | |
npm install | |
npm run build_vsix | |
- name: upload | |
if: github.ref == 'refs/heads/master' && matrix.os == 'ubuntu-latest' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: note-searcher.vsix | |
path: vscode/*.vsix | |
- name: publish | |
if: success() && startsWith( github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest' | |
working-directory: vscode | |
run: npm run publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |