Skip to content

Commit 223e969

Browse files
authored
Update node.js.yml
1 parent 6275523 commit 223e969

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/node.js.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: Primary
55

66
on:
77
push:
@@ -10,22 +10,22 @@ on:
1010
branches: [ main, experimental ]
1111

1212
jobs:
13-
build:
14-
15-
runs-on: ubuntu-latest
16-
13+
test:
14+
name: Test
1715
strategy:
1816
matrix:
19-
node-version: [12.x, 14.x, 16.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
17+
os: [macos-latest, ubuntu-latest, windows-latest]
18+
runs-on: ${{ matrix.os }}
2219
steps:
23-
- uses: actions/checkout@v2
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v2
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
- run: npm ci
30-
- run: npm run build --if-present
31-
- run: npm test
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 12
26+
- name: Install dependencies
27+
run: npm install
28+
- name: Run headless test
29+
uses: GabrielBB/xvfb-action@v1.0
30+
with:
31+
run: npm test

0 commit comments

Comments
 (0)