-
Notifications
You must be signed in to change notification settings - Fork 69
51 lines (43 loc) · 1.08 KB
/
test.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
name: Run tests
on:
workflow_dispatch:
push:
pull_request:
branches:
- main
jobs:
run-tests:
name: Rebuild & Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node:
- 16
- 22
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Use Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
# temporarily necessary while skia_bindings 0.78.2 is looking for the `pipes` module which
# was renamed in Python 3.13 (can hopefully be removed at the next release…)
- name: Downgrade Python (depot_tools workaround)
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build module
run: make optimized
- name: Run tests
run: |
npm test --verbose