forked from mikeseven/node-webgl
-
Notifications
You must be signed in to change notification settings - Fork 183
39 lines (39 loc) · 1.2 KB
/
ci.yml
File metadata and controls
39 lines (39 loc) · 1.2 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
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: ci
on:
push:
# branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ci:
runs-on: ${{ matrix.os }}
permissions:
packages: read
strategy:
fail-fast: false
matrix:
node-version: [24.x]
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2025, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
- if: runner.os == 'Linux'
run: >
sudo add-apt-repository ppa:kisak/turtle &&
sudo apt update &&
sudo apt-get install -y build-essential libgl1-mesa-dri libglapi-mesa libglew-dev libglu1-mesa-dev libosmesa6 libxi-dev mesa-utils pkg-config
- run: npm ci --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run rebuild
- if: runner.os == 'Linux'
run: xvfb-run glxinfo
- if: runner.os == 'Linux'
run: xvfb-run npm test
- if: runner.os != 'Linux'
run: npm test