patch test flow #357
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
on: | |
push: | |
branches: | |
- '*' # matches every branch that doesn't contain a '/' | |
- '*/*' # matches every branch containing a single '/' | |
- '**' # matches every branch | |
- '!master' # excludes master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
inputs: | |
build: | |
description: Unit tests | |
type: boolean | |
required: true | |
default: "true" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ matrix.path }} | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- run: npm install | |
# Additional steps for MacOS | |
- name: Globally install gulp for MacOS | |
run: npm i gulp gulp-cli -g | |
if: runner.os == 'MacOS' | |
# Run tests with @vscode/test-cli | |
- name: Run tests with @vscode/test-cli | |
run: npx vscode-test |