GH Actions review #1
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: Compile Development Branch to VSIX | |
# The workflow will trigger only when changes are pushed to the 'dev' branch | |
on: | |
push: | |
branches: [ dev ] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm build | |
- name: Test | |
run: npm test | |
- name: Upload artifact (if tests pass) | |
if: success() # Only upload if the previous 'Test' step succeeded | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build-output | |
path: | # Include the path to your build output directory | |
dist/ | |
coverage/ |