-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.03 KB
/
Copy pathtest.yml
File metadata and controls
42 lines (38 loc) · 1.03 KB
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
name: Tests
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Use Node.js 22.13
uses: actions/setup-node@v4
with:
node-version: 22.13.0
cache: npm
- name: Install dependencies
run: npm ci
- name: Diff whitespace check
run: git diff --check
- name: Run tests
run: npm test
- name: Package metadata sanity
run: |
node -e "const p=require('./package.json'); if(!p.version) process.exit(1); if(p.license!=='MIT') process.exit(1); console.log('version', p.version)"
test -f LICENSE
test -f CHANGELOG.md
test -f docs/release-checklist.md
test -f docs/release-lifecycle.md
test -f docs/GOVERNANCE.md