forked from atom/keyboard-layout
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 867 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
34
35
36
37
38
39
40
name: CI
on:
push:
branches:
- master
pull_request:
env:
CI: true
jobs:
Tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [14, 16, 18]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Force node-gyp 9.0.0 in Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
npm install --global [email protected]
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
- name: Install dependencies
run: npm i
- name: Run tests
uses: GabrielBB/xvfb-action@v1
with:
run: npm test