2021-10-26 17:48:04 +00:00
|
|
|
name: "@vscode/test-electron"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-05-05 23:44:50 +00:00
|
|
|
os:
|
|
|
|
- macos-11
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
node_version:
|
|
|
|
- 16
|
2021-10-26 17:48:04 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-05-05 23:44:50 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-10-26 17:48:04 +00:00
|
|
|
- name: Install Node.js
|
2022-05-05 23:44:50 +00:00
|
|
|
uses: actions/setup-node@v3
|
2021-10-26 17:48:04 +00:00
|
|
|
with:
|
2022-05-05 23:44:50 +00:00
|
|
|
node-version: ${{ matrix.node_version }}
|
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: '**/package-lock.json'
|
2021-10-26 17:48:04 +00:00
|
|
|
- run: npm ci
|
|
|
|
- run: xvfb-run -a npm test
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
- run: npm test
|
|
|
|
if: runner.os != 'Linux'
|