Skip to content

Update build.yml

Update build.yml #9

Workflow file for this run

name: Build Extension
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build the extension
run: yarn compile
- name: Run test on Linux
run: xvfb-run -a yarn test
if: runner.os == 'Linux'
env:
DBUS_SESSION_BUS_ADDRESS: "/dev/null"
- name: Run test on other OS
run: yarn test
if: runner.os != 'Linux'
# - name: Package the extension
# run: |
# yarn global add @vscode/vsce
# vsce package
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: extension-package
# path: '*.vsix'