@@ -18,16 +18,13 @@ jobs:
18
18
if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
19
19
steps :
20
20
- uses : actions/checkout@v4
21
+ - run : corepack enable
21
22
- uses : actions/setup-node@v4
22
23
with :
23
24
node-version : 18
24
- - uses : actions/cache@v4
25
- id : cache
26
- with :
27
- path : node_modules
28
- key : ${{ runner.os }}-${{ github.sha }}
25
+ cache : ' yarn'
26
+ cache-dependency-path : yarn.lock
29
27
- name : Install Dependencies
30
- if : ${{ steps.cache.outputs['cache-hit'] != 'true' }}
31
28
run : yarn install
32
29
- name : Test
33
30
run : yarn test
@@ -39,49 +36,32 @@ jobs:
39
36
if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
40
37
steps :
41
38
- uses : actions/checkout@v4
42
- - uses : actions/cache@v4
43
- id : cache
39
+ - run : corepack enable
40
+ - uses : actions/setup-node@v4
44
41
with :
45
- path : node_modules
46
- key : ${{ runner.os }}-${{ github.sha }}
42
+ node-version : 18
43
+ cache : ' yarn'
44
+ cache-dependency-path : yarn.lock
47
45
- name : Install Dependencies
48
- if : ${{ steps.cache.outputs['cache-hit'] != 'true' }}
49
46
run : yarn install
50
47
- name : Lint
51
48
run : yarn lint
52
49
53
- job_lint_sample_new_arch :
54
- name : Lint Sample
55
- runs-on : ubuntu-latest
56
- needs : [diff_check]
57
- if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
58
- steps :
59
- - uses : actions/checkout@v4
60
- - uses : actions/cache@v4
61
- id : cache
62
- with :
63
- path : samples/react-native/node_modules
64
- key : ${{ runner.os }}-${{ github.sha }}
65
- - name : Install Dependencies
66
- if : steps.cache.outputs['cache-hit'] != 'true'
67
- run : yarn install
68
- working-directory : samples/react-native
69
- - name : Lint Sample
70
- run : yarn lint
71
- working-directory : samples/react-native
72
-
73
50
job_check_integrity :
74
51
name : Check package integrity
75
52
runs-on : ubuntu-latest
76
53
needs : [diff_check]
77
54
if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
78
55
steps :
79
56
- uses : actions/checkout@v4
80
- - uses : actions/cache@v4
81
- id : cache
57
+ - run : corepack enable
58
+ - uses : actions/setup-node@v4
82
59
with :
83
- path : node_modules
84
- key : ${{ runner.os }}-${{ github.sha }}
60
+ node-version : 18
61
+ cache : ' yarn'
62
+ cache-dependency-path : yarn.lock
63
+ - name : Install Dependencies
64
+ run : yarn install
85
65
- name : Save initial lock file
86
66
run : cp yarn.lock yarn.lock.initial
87
67
- name : Install Dependencies (update lock if necessary)
@@ -97,112 +77,97 @@ jobs:
97
77
if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
98
78
steps :
99
79
- uses : actions/checkout@v4
80
+ - run : corepack enable
100
81
- uses : actions/setup-node@v4
101
82
with :
102
83
node-version : 18
103
- - uses : actions/cache@v4
104
- id : cache
105
- with :
106
- path : node_modules
107
- key : ${{ runner.os }}-${{ github.sha }}
84
+ cache : ' yarn'
85
+ cache-dependency-path : yarn.lock
108
86
- name : Install Dependencies
109
- if : ${{ steps.cache.outputs['cache-hit'] != 'true' }}
110
87
run : yarn install
111
88
- name : Build
112
89
run : yarn build
113
90
- name : Archive dist
114
91
uses : actions/upload-artifact@v4
115
92
with :
116
93
name : dist
117
- path : dist
94
+ path : packages/core/ dist
118
95
- name : Archive ts3.8
119
96
uses : actions/upload-artifact@v4
120
97
with :
121
98
name : ts3.8
122
- path : ts3.8
99
+ path : packages/core/ ts3.8
123
100
- name : Archive Expo Plugin
124
101
uses : actions/upload-artifact@v4
125
102
with :
126
103
name : expo-plugin
127
- path : plugin/build
104
+ path : packages/core/ plugin/build
128
105
- name : Pack
129
- run : yarn pack
106
+ run : yarn build:tarball
130
107
- name : Archive Artifacts
131
108
uses : actions/upload-artifact@v4
132
109
with :
133
110
name : ${{ github.sha }}
134
111
path : |
135
- ${{ github.workspace }}/*.tgz
112
+ ${{ github.workspace }}/packages/core/ *.tgz
136
113
137
114
job_type_check :
138
115
name : Type Check Typescript 3.8
139
116
runs-on : ubuntu-latest
140
117
needs : [job_build, diff_check]
141
118
if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
119
+ env :
120
+ YARN_ENABLE_IMMUTABLE_INSTALLS : false
142
121
steps :
143
122
- uses : actions/checkout@v4
123
+ - run : corepack enable
144
124
- uses : actions/setup-node@v4
145
125
with :
146
126
node-version : 18
147
- - uses : actions/cache@v4
148
- id : cache
149
- with :
150
- path : test/typescript/ts3.8/node_modules
151
- key : ${{ runner.os }}-${{ github.sha }}-ts3.8
127
+ cache : ' yarn'
128
+ cache-dependency-path : yarn.lock
129
+ - name : Install Dependencies
130
+ run : yarn install
152
131
- name : Download dist
153
132
uses : actions/download-artifact@v4
154
133
with :
155
134
name : dist
156
- path : dist
135
+ path : packages/core/ dist
157
136
- name : Download ts3.8
158
137
uses : actions/download-artifact@v4
159
138
with :
160
139
name : ts3.8
161
- path : ts3.8
140
+ path : packages/core/ ts3.8
162
141
- name : Install Global Dependencies
163
- run : yarn global add yalc
164
- - name : Publish SDK
165
- run : yalc publish
166
- - name : Install SDK
167
- working-directory : test/typescript/ts3.8
168
- run : yalc add @sentry/react-native
169
- - name : Install Dependencies
170
- if : ${{ steps.cache.outputs['cache-hit'] != 'true' }}
171
- working-directory : test/typescript/ts3.8
172
- run : yarn install
142
+ run : npm i -g add yalc
173
143
- name : Type Check
174
- working-directory : test/typescript/ts3.8
144
+ working-directory : dev-packages/type-check
175
145
run : yarn type-check
176
-
177
146
job_circular_dep_check :
178
147
name : Circular Dependency Check
179
148
runs-on : ubuntu-latest
180
149
needs : [job_build, diff_check]
181
150
if : ${{ needs.diff_check.outputs.skip_ci != 'true' }}
182
151
steps :
183
152
- uses : actions/checkout@v4
153
+ - run : corepack enable
184
154
- uses : actions/setup-node@v4
185
155
with :
186
156
node-version : 18
187
- - name : Cache Dependencies
188
- uses : actions/cache@v4
189
- id : cache
190
- with :
191
- path : node_modules
192
- key : ${{ runner.os }}-${{ github.sha }}
157
+ cache : ' yarn'
158
+ cache-dependency-path : yarn.lock
193
159
- name : Install Dependencies
194
- if : ${{ steps.cache.outputs['cache-hit'] != 'true' }}
195
160
run : yarn install
196
161
- name : Download dist
197
162
uses : actions/download-artifact@v4
198
163
with :
199
164
name : dist
200
- path : dist
165
+ path : packages/core/ dist
201
166
- name : Download Expo Plugin
202
167
uses : actions/download-artifact@v4
203
168
with :
204
169
name : expo-plugin
205
- path : plugin/build
170
+ path : packages/core/ plugin/build
206
171
- name : Run madge
207
172
run : yarn circularDepCheck
208
173
@@ -219,28 +184,14 @@ jobs:
219
184
dev : [true, false]
220
185
steps :
221
186
- uses : actions/checkout@v4
187
+ - run : corepack enable
222
188
- uses : actions/setup-node@v4
223
189
with :
224
190
node-version : 18
225
- - name : Cache Dependencies
226
- uses : actions/cache@v4
227
- id : cache
228
- with :
229
- path : node_modules
230
- key : ${{ runner.os }}-${{ github.sha }}
231
- - name : Cache Sample Dependencies
232
- uses : actions/cache@v4
233
- id : cache-sample
234
- with :
235
- path : samples/react-native/node_modules
236
- key : ${{ runner.os }}-${{ hashFiles('samples/react-native/yarn.lock') }}
191
+ cache : ' yarn'
192
+ cache-dependency-path : yarn.lock
237
193
- name : Install Dependencies
238
- if : ${{ steps.cache.outputs['cache-hit'] != 'true' }}
239
- run : yarn install
240
- - name : Install Sample Dependencies
241
- if : ${{ steps.cache-sample.outputs['cache-hit'] != 'true' }}
242
194
run : yarn install
243
- working-directory : samples/react-native
244
195
- name : Build
245
196
run : yarn build
246
197
- name : Make Sample Build Directory
0 commit comments