-
-
Notifications
You must be signed in to change notification settings - Fork 155
109 lines (108 loc) · 3.14 KB
/
CI.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
name: CI
on:
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: 'three-ts-types'
- uses: actions/checkout@v4
with:
repository: 'DefinitelyTyped/DefinitelyTyped'
path: 'DefinitelyTyped'
filter: blob:none
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: rsync -av --delete three-ts-types/types/three/ DefinitelyTyped/types/three
- run: git add -A
working-directory: 'DefinitelyTyped'
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Nathan Bierema"
- run: git commit -m "Changes"
working-directory: 'DefinitelyTyped'
- run: pnpm install --filter . --filter ...[HEAD^1]...
working-directory: 'DefinitelyTyped'
- run: pnpm run test-all --diffBase HEAD^1
working-directory: 'DefinitelyTyped'
check-fomatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run format-check
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm exec tsc --project tsconfig.all-files.json
test-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run create-examples
working-directory: examples-testing
- run: git apply changes.patch
working-directory: examples-testing
- run: pnpm run type-check
working-directory: examples-testing
- run: pnpm run format-check
working-directory: examples-testing
test-src:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run create-src
working-directory: src-testing
- run: git apply changes.patch
working-directory: src-testing
- run: pnpm run format-check
working-directory: src-testing
- run: pnpm run build-declarations
working-directory: src-testing
continue-on-error: true
- run: pnpm run format-dprint
working-directory: src-testing
- run: pnpm run check-declarations
working-directory: src-testing