-
Notifications
You must be signed in to change notification settings - Fork 23
58 lines (57 loc) · 1.76 KB
/
ci.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
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Run tests
on: push
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
# https://stackoverflow.com/questions/77251296/distutils-not-found-when-running-npm-install
# PYTHON: 3.11
# "$Env:GYP_MSVS_VERSION": 2022
steps:
- name: Install ubuntu requirements
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get -qq update
sudo apt-get install -y libx11-dev libxss-dev icnsutils graphicsmagick libappindicator1 libxtst-dev
# https://github.com/nodejs/node-gyp/issues/2869
# - name: Hack node-gyp
# if: ${{ matrix.os != 'windows-latest' }}
# run: |
# sudo -H python3 -m pip install packaging
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Specify MSVS version
if: ${{ matrix.os == 'windows-latest' }}
shell: powershell
run: |
echo "GYP_MSVS_VERSION=2022" >> $env:GITHUB_ENV
# - name: Patch node-gyp
# if: ${{ matrix.os == 'windows-latest' }}
# shell: powershell
# run: |
# npm config set msvs_version 2022
- run: npm ci
- run: npm rebuild
- run: npm run test-lib
- name: Run integration tests
if: ${{ matrix.os != 'ubuntu-latest' }}
run: npm run test-ui
- uses: actions/upload-artifact@v4
if: always()
with:
name: logs
#/Users/runner/Library/Logs/mocha/
# ~/.config/Before Dawn/logs/
path: |
C:\Users\runneradmin\AppData\Roaming\mocha\logs\