-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (44 loc) · 1.22 KB
/
E2E.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
name: Run E2E tests
on:
pull_request:
push:
branches:
- main
jobs:
e2e:
name: Run E2E tests
runs-on: ubuntu-latest
strategy:
matrix:
version: ["1.90.0", "stable", "insiders"]
steps:
- run: sudo apt update && sudo apt install -y libasound2t64 libgbm1 libgtk-3-0 libnss3 xvfb expect
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
- run: npm install
- run: npm run build:production
- run: echo 'APOLLO_KEY="service:bob-123:489fhseo4"' > ./sampleWorkspace/spotifyGraph/.env
- run: |
expect <<EOF
spawn ./node_modules/.bin/rover config auth --profile VSCode-E2E
expect "Copy the key and paste it into the prompt below."
send -- "test\n"
expect eof
EOF
- run: xvfb-run -a npm run test:extension
env:
VSCODE_VERSION: "${{ matrix.version }}"
test:
name: Run other tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: "npm"
- run: npm install
- run: npm run build:production
- run: yarn test
- run: yarn test:textmate