-
Notifications
You must be signed in to change notification settings - Fork 87
32 lines (29 loc) · 980 Bytes
/
nodejs-knex-tests.yaml
File metadata and controls
32 lines (29 loc) · 980 Bytes
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
name: Nodejs Knex Packages Test
on:
push:
branches:
- master
paths:
- nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
pull_request:
paths:
- nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
jobs:
unittests:
runs-on: ubuntu-latest
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
node-version: [ current, lts/* ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
- run: npm run build --if-present
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
- run: npm test
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex