File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Node 22 Compile and Test
1+ name : CI
22
33on :
44 push :
99 - main
1010
1111jobs :
12- compile-and-test :
13- runs-on : ubuntu-latest
12+ validation :
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ include :
17+ - name : macOS
18+ os : macos-latest
19+ node_version : ' 18'
20+ only_minspec : false
21+ - name : Linux
22+ os : ubuntu-22.04
23+ node_version : ' 18'
24+ only_minspec : false
25+ - name : LinuxMinspec
26+ os : ubuntu-22.04
27+ node_version : ' 18'
28+ only_minspec : true
29+ - name : Windows
30+ os : windows-latest
31+ node_version : ' 18'
32+ only_minspec : false
33+ name : ${{ matrix.name }}
34+ runs-on : ${{ matrix.os }}
1435 permissions :
1536 contents : read
1637
1738 steps :
1839 - name : Checkout repository
1940 uses : actions/checkout@v4
2041
21- - name : Setup Node.js 22
42+ - name : Setup Node.js
2243 uses : actions/setup-node@v4
2344 with :
24- node-version : 22
45+ node-version : ${{ matrix.node_version }}
2546
26- - name : Install dependencies
27- run : npm ci --legacy-peer-deps
47+ - name : Start xvfb
48+ if : runner.os == 'Linux'
49+ run : |
50+ /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
51+ echo ">>> Started xvfb"
2852
29- - name : Compile
30- run : npm run compile
53+ - name : npm install
54+ run : npm install --legacy-peer-deps
3155
32- - name : Test
33- run : xvfb-run -a npm test
56+ - name : test echo environment
57+ run : node -e "console.log(process.env.PATH)"
3458 env :
3559 JSDBG_TEST_VERSION : insiders
36- JSDBG_USE_NODE_VERSION : ' 22'
60+ DISPLAY : ' :99.0'
61+
62+ - name : npm test
63+ run : npm test
64+ timeout-minutes : 12
65+ env :
66+ JSDBG_TEST_VERSION : insiders
67+ JSDBG_USE_NODE_VERSION : ${{ matrix.node_version }}
68+ DISPLAY : ' :99.0'
69+
70+ - name : gulp lint
71+ if : ${{ !matrix.only_minspec }}
72+ run : npx gulp lint
You can’t perform that action at this time.
0 commit comments