forked from atom/text-buffer
-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 976 Bytes
/
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
name: CI
on: [push]
env:
CI: true
jobs:
Test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install Python setuptools
# This is needed for Python 3.12+, since many versions of node-gyp
# are incompatible with Python 3.12+, which no-longer ships 'distutils'
# out of the box. 'setuptools' package provides 'distutils'.
run: python3 -m pip install setuptools
- name: Install windows-build-tools
if: ${{ matrix.os == 'windows-latest' }}
run: npm config set msvs_version 2019
- name: Pre-warm the node headers cache for node-gyp
if: ${{ runner.os == 'Windows' }}
run: npx node-gyp install
- name: Install dependencies
run: npm i
- name: Run tests
run: npm test