-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.49 KB
/
Copy pathci.yml
File metadata and controls
38 lines (38 loc) · 1.49 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
name: Clean Install CI
on:
push:
branches: [main, master, develop, feat/**]
pull_request:
branches: [main, master, develop]
jobs:
clean-install:
runs-on: ubuntu-latest
env:
OMNIROUTE_BASE_URL: http://127.0.0.1:20132/v1
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies from lockfile
run: npm ci
- name: Assert supported TypeScript/ts-jest boundary
run: node -e "const p=require('./node_modules/typescript/package.json'); const peer=require('./node_modules/ts-jest/package.json').peerDependencies.typescript; if (!p.version.startsWith('5.9.')) throw new Error('Unsupported TypeScript '+p.version); if (peer !== '>=4.3 <7') throw new Error('Unexpected ts-jest TypeScript peer '+peer)"
- name: Typecheck
run: npm run typecheck
- name: Check formatting
run: npm run format:check
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Verify shipped package in a clean consumer
run: npm run verify:package
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install verdict-core (compat gate)
run: pip install "git+https://github.com/mrnicholasbcarter-code/verdict-core.git@main"
- name: Verify compat manifest gate
run: verdict compat check --declared .verdict/compat-manifest.json --json