Skip to content

GH Actions review

GH Actions review #1

Workflow file for this run

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/