-
Notifications
You must be signed in to change notification settings - Fork 23
32 lines (32 loc) · 952 Bytes
/
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
name: Run E2E tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
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 libasound2 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 }}"