-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (32 loc) · 1 KB
/
nodejs.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
name: Node CI
on:
push:
branches-ignore: ['v[0-9].[0-9].[0-9]']
pull_request:
branches-ignore: ['v[0-9].[0-9].[0-9]']
jobs:
build:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [14, 16, 18]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: ${{ matrix.node_version }}
- name: Upgrade npm
run: npm i -g npm@latest
- name: npm install
uses: bahmutov/npm-install@cb39a46f27f14697fec763d60fb23ad347e2befa # tag=v1
- name: test
run: |
npm test
npm run stop-only
DEBUG=snap-shot-it npm run test-two-specs
npm run ts-demo
npm run coffee-demo
cd test-all-skipped && npm test