-
-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (44 loc) · 1.35 KB
/
e2e-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: E2E Test
on: [push]
jobs:
test:
name: E2E Test
strategy:
matrix:
os: [ubuntu-latest]
vscode_version: ["stable"]
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: 22.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
shell: bash
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
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@v4
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:e2e
env:
VSCODE_VERSION: ${{ matrix.vscode_version }}