@@ -99,15 +99,15 @@ jobs:
99
99
any_code:
100
100
- '!**/*.md'
101
101
102
-
103
102
- name : Get PR labels
104
103
id : pr-labels
105
104
uses : mydea/pr-labels-action@fn/bump-node20
106
105
107
106
outputs :
108
107
commit_label : ' ${{ env.COMMIT_SHA }}: ${{ env.COMMIT_MESSAGE }}'
109
108
# Note: These next three have to be checked as strings ('true'/'false')!
110
- is_base_branch : ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v9' || github.ref == 'refs/heads/v8'}}
109
+ is_base_branch :
110
+ ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/v9' || github.ref == 'refs/heads/v8'}}
111
111
is_release : ${{ startsWith(github.ref, 'refs/heads/release/') }}
112
112
changed_ci : ${{ steps.changed.outputs.workflow == 'true' }}
113
113
changed_any_code : ${{ steps.changed.outputs.any_code == 'true' }}
@@ -172,7 +172,8 @@ jobs:
172
172
key : nx-Linux-${{ github.ref }}-${{ env.HEAD_COMMIT || github.sha }}
173
173
# On develop branch, we want to _store_ the cache (so it can be used by other branches), but never _restore_ from it
174
174
restore-keys :
175
- ${{needs.job_get_metadata.outputs.is_base_branch == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
175
+ ${{needs.job_get_metadata.outputs.is_base_branch == 'false' && env.NX_CACHE_RESTORE_KEYS ||
176
+ ' nx-never-restore' }}
176
177
177
178
- name : Build packages
178
179
# Set the CODECOV_TOKEN for Bundle Analysis
@@ -191,12 +192,24 @@ jobs:
191
192
192
193
outputs :
193
194
dependency_cache_key : ${{ steps.install_dependencies.outputs.cache_key }}
194
- changed_node_integration : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry-internal/node-integration-tests') }}
195
- changed_remix : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/remix') }}
196
- changed_node : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/node') }}
197
- changed_deno : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/deno') }}
198
- changed_bun : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry/bun') }}
199
- changed_browser_integration : ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected, '@sentry-internal/browser-integration-tests') }}
195
+ changed_node_integration :
196
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
197
+ ' @sentry-internal/node-integration-tests' ) }}
198
+ changed_remix :
199
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
200
+ ' @sentry/remix' ) }}
201
+ changed_node :
202
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
203
+ ' @sentry/node' ) }}
204
+ changed_deno :
205
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
206
+ ' @sentry/deno' ) }}
207
+ changed_bun :
208
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
209
+ ' @sentry/bun' ) }}
210
+ changed_browser_integration :
211
+ ${{ needs.job_get_metadata.outputs.changed_ci == 'true' || contains(steps.checkForAffected.outputs.affected,
212
+ ' @sentry-internal/browser-integration-tests' ) }}
200
213
201
214
job_check_branches :
202
215
name : Check PR branches
@@ -263,8 +276,6 @@ jobs:
263
276
dependency_cache_key : ${{ needs.job_build.outputs.dependency_cache_key }}
264
277
- name : Lint source files
265
278
run : yarn lint:lerna
266
- - name : Lint C++ files
267
- run : yarn lint:clang
268
279
- name : Lint for ES compatibility
269
280
run : yarn lint:es-compatibility
270
281
@@ -289,7 +300,7 @@ jobs:
289
300
id : install_dependencies
290
301
291
302
- name : Check file formatting
292
- run : yarn lint:prettier && yarn lint:biome
303
+ run : yarn lint:prettier
293
304
294
305
job_circular_dep_check :
295
306
name : Circular Dependency Check
@@ -439,7 +450,7 @@ jobs:
439
450
with :
440
451
node-version-file : ' package.json'
441
452
- name : Set up Deno
442
- uses :
denoland/[email protected] .1
453
+ uses :
denoland/[email protected] .2
443
454
with :
444
455
deno-version : v2.1.5
445
456
- name : Restore caches
@@ -506,7 +517,9 @@ jobs:
506
517
token : ${{ secrets.CODECOV_TOKEN }}
507
518
508
519
job_browser_playwright_tests :
509
- name : Playwright ${{ matrix.bundle }}${{ matrix.project && matrix.project != 'chromium' && format(' {0}', matrix.project) || ''}}${{ matrix.shard && format(' ({0}/{1})', matrix.shard, matrix.shards) || ''}} Tests
520
+ name :
521
+ Playwright ${{ matrix.bundle }}${{ matrix.project && matrix.project != 'chromium' && format(' {0}',
522
+ matrix.project) || ''}}${{ matrix.shard && format(' ({0}/{1})', matrix.shard, matrix.shards) || ''}} Tests
510
523
needs : [job_get_metadata, job_build]
511
524
if : needs.job_build.outputs.changed_browser_integration == 'true' || github.event_name != 'pull_request'
512
525
runs-on : ubuntu-20.04-large-js
@@ -576,13 +589,17 @@ jobs:
576
589
env :
577
590
PW_BUNDLE : ${{ matrix.bundle }}
578
591
working-directory : dev-packages/browser-integration-tests
579
- run : yarn test:all${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}
592
+ run :
593
+ yarn test:all${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard &&
594
+ format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}
580
595
581
596
- name : Upload Playwright Traces
582
597
uses : actions/upload-artifact@v4
583
598
if : failure()
584
599
with :
585
- name : playwright-traces-job_browser_playwright_tests-${{ matrix.bundle}}-${{matrix.project}}-${{matrix.shard || '0'}}
600
+ name :
601
+ playwright-traces-job_browser_playwright_tests-${{ matrix.bundle}}-${{matrix.project}}-${{matrix.shard ||
602
+ ' 0' }}
586
603
path : dev-packages/browser-integration-tests/test-results
587
604
overwrite : true
588
605
retention-days : 7
@@ -824,21 +841,26 @@ jobs:
824
841
825
842
- name : Determine which E2E test applications should be run
826
843
id : matrix
827
- run : yarn --silent ci:build-matrix --base=${{ (github.event_name == 'pull_request' && github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
844
+ run :
845
+ yarn --silent ci:build-matrix --base=${{ (github.event_name == 'pull_request' &&
846
+ github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
828
847
working-directory : dev-packages/e2e-tests
829
848
830
849
- name : Determine which optional E2E test applications should be run
831
850
id : matrix-optional
832
- run : yarn --silent ci:build-matrix-optional --base=${{ (github.event_name == 'pull_request' && github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
851
+ run :
852
+ yarn --silent ci:build-matrix-optional --base=${{ (github.event_name == 'pull_request' &&
853
+ github.event.pull_request.base.sha) || '' }} >> $GITHUB_OUTPUT
833
854
working-directory : dev-packages/e2e-tests
834
855
835
856
job_e2e_tests :
836
857
name : E2E ${{ matrix.label || matrix.test-application }} Test
837
858
# We need to add the `always()` check here because the previous step has this as well :(
838
859
# See: https://github.com/actions/runner/issues/2205
839
- if : always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
860
+ if :
861
+ always() && needs.job_e2e_prepare.result == 'success' && needs.job_e2e_prepare.outputs.matrix != '{"include":[]}'
840
862
needs : [job_get_metadata, job_build, job_e2e_prepare]
841
- runs-on : ubuntu-20 .04
863
+ runs-on : ubuntu-22 .04
842
864
timeout-minutes : 15
843
865
env :
844
866
# We just use a dummy DSN here, only send to the tunnel anyhow
@@ -953,12 +975,9 @@ jobs:
953
975
# We need to add the `always()` check here because the previous step has this as well :(
954
976
# See: https://github.com/actions/runner/issues/2205
955
977
if :
956
- always() &&
957
- needs.job_get_metadata.outputs.is_release != 'true' &&
958
- needs.job_e2e_prepare.result == 'success' &&
959
- needs.job_e2e_prepare.outputs.matrix-optional != '{"include":[]}' &&
960
- (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
961
- github.actor != 'dependabot[bot]'
978
+ always() && needs.job_get_metadata.outputs.is_release != 'true' && needs.job_e2e_prepare.result == 'success' &&
979
+ needs.job_e2e_prepare.outputs.matrix-optional != '{"include":[]}' && (github.event_name != 'pull_request' ||
980
+ github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]'
962
981
needs : [job_get_metadata, job_build, job_e2e_prepare]
963
982
runs-on : ubuntu-20.04
964
983
timeout-minutes : 15
0 commit comments