-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (30 loc) · 944 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
name: Run tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
copywrite:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout Repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # https://github.com/actions/checkout/releases/tag/v4.0.0
- name: Install copywrite
uses: hashicorp/setup-copywrite@v1.1.2
- name: Validate Header Compliance
run: copywrite headers --plan
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # https://github.com/actions/checkout/releases/tag/v4.0.0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # https://github.com/actions/setup-node/releases/tag/v3.8.1
with:
node-version-file: .nvmrc
- name: npm install
run: npm ci
- name: test
run: npm test