-
Notifications
You must be signed in to change notification settings - Fork 147
28 lines (22 loc) · 801 Bytes
/
test.yml
File metadata and controls
28 lines (22 loc) · 801 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
name: Test JavaScript
on:
pull_request:
types: [opened, synchronize]
jobs:
test:
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
# v5.0.0
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Remove version from package-lock.json
run: jq 'del(.version, .packages[""].version)' package-lock.json > normalized-package-lock.json
# v5.0.0
- uses: actions/setup-node@13427813f706a0f6c9b74603b31103c40ab1c35a
with:
node-version-file: '.nvmrc'
cache: npm
cache-dependency-path: normalized-package-lock.json
- run: npm ci
- run: npm run test
env:
CI: true