forked from qxchuckle/copyright-code
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.45 KB
/
test.yml
File metadata and controls
60 lines (51 loc) · 1.45 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Extension Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
vscode_version: [ '1.80.0', 'stable' ]
node_version: [ '20' ]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node_version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Cache VS Code test downloads
uses: actions/cache@v4
with:
path: ~/.vscode-test
key: vscode-test-${{ runner.os }}-${{ matrix.vscode_version }}
- name: Install Xvfb and deps (Ubuntu 24.04 compatible)
run: |
sudo apt-get update
sudo apt-get install -y \
xvfb \
libgtk-3-0 \
libnss3 \
libxss1 \
libxtst6 \
libgbm1
sudo apt-get install -y libasound2 || sudo apt-get install -y libasound2t64
- name: Run integration tests (VS Code ${{ matrix.vscode_version }})
env:
VSCODE_TEST_VERSION: ${{ matrix.vscode_version }}
ELECTRON_ENABLE_LOGGING: '1'
ELECTRON_ENABLE_STACK_DUMPING: '1'
run: |
xvfb-run -a npm test