-
Notifications
You must be signed in to change notification settings - Fork 194
35 lines (35 loc) · 997 Bytes
/
test.yml
File metadata and controls
35 lines (35 loc) · 997 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
33
34
35
name: Test
on:
push:
branches:
- master
- develop
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ matrix.node-version }} in ${{ runner.OS }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v5
with:
path: ~/.npm
key: ${{ runner.OS }}-${{ matrix.node-version }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-${{ matrix.node-version }}-node-
${{ runner.OS }}-${{ matrix.node-version }}-
${{ runner.OS }}-
- name: Install node modules
run: |
npm install
npm run lerna-bootstrap
- run: npm run test:ci
- run: npm run test:coverage