Skip to content

Commit 98406b5

Browse files
mikejamesthompsonpaulrobertlloyd
authored andcommitted
Add GitHub workflow for PRs to lint and run create-data
Uses `npm ci --ignore-scripts` for clean installs and prevent create-data running implicitly in postinstall.
1 parent 8fd4816 commit 98406b5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
lint-and-create-data:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v6
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version-file: '.nvmrc'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci --ignore-scripts
25+
26+
- name: Run lint
27+
run: npm run lint
28+
29+
- name: Run create-data
30+
run: npm run create-data

0 commit comments

Comments
 (0)