Merge pull request #808 from shufo/feature/vscode_test_electron_2_3_8 #1230
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
name: CI | |
on: [push] | |
jobs: | |
test: | |
name: CI | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
vscode_version: ["stable", "1.69.2", "1.59.0"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Make envfile | |
run: | | |
echo APP_INSIGHT_INSTRUMENT_KEY=example_key >> .env | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v3 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- uses: actions/cache@v3 | |
id: vscode-test-cache | |
with: | |
path: .vscode-test | |
key: ${{ runner.os }}-vscode-test-${{ matrix.vscode_version }} | |
- name: Install dependencies | |
run: yarn install | |
- name: Run headless test | |
uses: GabrielBB/[email protected] | |
with: | |
run: yarn run test | |
env: | |
VSCODE_VERSION: ${{ matrix.vscode_version }} |