Skip to content

update runTest.ts

update runTest.ts #5

Workflow file for this run

---
on:
push:
branches:
- main
release:
types:
- created
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install python on windows
uses: actions/setup-python@v5
with:
python-version: '3.12'
update-environment: true
if: matrix.os == 'windows-latest'
- name: Display Python version
run: python --version
- run: corepack enable
- run: yarn set version stable
- run: yarn install
- run: |
apt update && apt install -y xvfb libasound2 libgbm1 libgtk-3-0 libnss3
xvfb-run -a yarn run test
if: runner.os == 'Linux'
- run: yarn run test
if: runner.os != 'Linux'
- name: Build
run: yarn run build
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
# - name: Publish
# if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
# run: yarn run deploy
# env:
# VSCE_PAT: ${{ secrets.VSCE_PAT }}