-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1016 Bytes
/
test.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
name: Test
on: [push,pull_request]
jobs:
test_suite:
runs-on: ${{ matrix.os }}
name: Test - ${{ matrix.os }} - Node ${{ matrix.node }}
timeout-minutes: 30
strategy:
matrix:
node: [10, 12, 14]
#os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node }}
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Setup Cache
uses: actions/cache@v4.0.2
with:
path: |
${{ steps.npm-cache.outputs.dir }}
node_modules
*/*/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm
- name: Install Deps
run: |
npm ci