-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 807 Bytes
/
test.yml
File metadata and controls
30 lines (27 loc) · 807 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
name: Test Workflow
on:
# Triggers the workflow on push events
push:
# Triggers the workflow on pull request events
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
name: 'Run tests'
steps:
- uses: actions/setup-node@v3
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.npm
key: npm-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-node-
- name: Install Deps
run: npm ci --ignore-scripts
- name: Run Tests
run: npm run test