-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
43 lines (34 loc) · 939 Bytes
/
validate.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
38
39
40
41
42
43
name: Validate cnames_active.js
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
env:
GH_EVENT_HASH: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.GH_EVENT_HASH }}
- uses: actions/checkout@v3
with:
repository: js-org/js.org-cleanup
path: cleanup
- uses: actions/setup-node@v2
with:
node-version-file: cleanup/.nvmrc
cache: npm
cache-dependency-path: cleanup/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: cleanup
- name: Validate cnames_active.js
run: node index.js --validate ../cnames_active.js
working-directory: cleanup