-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (56 loc) · 1.61 KB
/
Copy pathci.yml
File metadata and controls
60 lines (56 loc) · 1.61 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.0
- run: corepack enable
- uses: actions/setup-node@v6.4.0
with:
node-version: 24.18.0
cache: yarn
- run: yarn install --immutable
- run: yarn build
- uses: actions/upload-artifact@v7.0.1
with:
name: build-output
path: packages/**/lib/
retention-days: 1
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.0
- run: corepack enable
- uses: actions/setup-node@v6.4.0
with:
node-version: 24.18.0
cache: yarn
- run: yarn install --immutable
- uses: actions/download-artifact@v8.0.1
with:
name: build-output
path: packages/
- run: yarn test
lint:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.0
- run: corepack enable
- uses: actions/setup-node@v6.4.0
with:
node-version: 24.18.0
cache: yarn
- run: yarn install --immutable
# Type-aware lint rules (e.g. @typescript-eslint/no-unnecessary-type-assertion)
# resolve cross-package types from each package's built lib/*.d.ts. Without the
# build artifact, `@nitpicker/*` types collapse to `any` and the rules misfire,
# so the lint job must consume the build output just like the test job does.
- uses: actions/download-artifact@v8.0.1
with:
name: build-output
path: packages/
- run: yarn lint:check