Skip to content

Commit 773b298

Browse files
authored
Merge branch 'develop' into jb/profiling/conditional-shim
2 parents c5feb00 + bcf571d commit 773b298

File tree

267 files changed

+5294
-2046
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+5294
-2046
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ outputs:
99
runs:
1010
using: "composite"
1111
steps:
12-
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
13-
# so no need to reinstall them
1412
- name: Compute dependency cache key
1513
id: compute_lockfile_hash
16-
run: echo "hash=dependencies-${{ hashFiles('yarn.lock', 'packages/*/package.json', 'dev-packages/*/package.json') }}" >> "$GITHUB_OUTPUT"
14+
run: node ./scripts/dependency-hash-key.js >> "$GITHUB_OUTPUT"
1715
shell: bash
1816

1917
- name: Check dependency cache

.github/actions/install-playwright/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ runs:
2121
~/.cache/ms-playwright
2222
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
2323

24-
# Only store cache on develop branch
25-
- name: Store cached playwright binaries
26-
uses: actions/cache/save@v4
27-
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
28-
with:
29-
path: |
30-
~/.cache/ms-playwright
31-
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
32-
3324
# We always install all browsers, if uncached
3425
- name: Install Playwright dependencies (uncached)
3526
run: npx playwright install chromium webkit firefox --with-deps
@@ -40,3 +31,12 @@ runs:
4031
run: npx playwright install-deps ${{ inputs.browsers || 'chromium webkit firefox' }}
4132
if: steps.playwright-cache.outputs.cache-hit == 'true'
4233
shell: bash
34+
35+
# Only store cache on develop branch
36+
- name: Store cached playwright binaries
37+
uses: actions/cache/save@v4
38+
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
39+
with:
40+
path: |
41+
~/.cache/ms-playwright
42+
key: playwright-${{ runner.os }}-${{ steps.playwright-version.outputs.version }}
Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: "Restore dependency & build cache"
22
description: "Restore the dependency & build cache."
33

4+
inputs:
5+
dependency_cache_key:
6+
description: "The dependency cache key"
7+
required: true
8+
node_version:
9+
description: "If set, temporarily set node version to default one before installing, then revert to this version after."
10+
required: false
11+
412
runs:
513
using: "composite"
614
steps:
@@ -9,17 +17,26 @@ runs:
917
uses: actions/cache/restore@v4
1018
with:
1119
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
12-
key: ${{ env.DEPENDENCY_CACHE_KEY }}
20+
key: ${{ inputs.dependency_cache_key }}
1321

14-
- name: Check build cache
15-
uses: actions/cache/restore@v4
16-
id: build-cache
22+
- name: Restore build artifacts
23+
uses: actions/download-artifact@v4
1724
with:
18-
path: ${{ env.CACHED_BUILD_PATHS }}
19-
key: ${{ env.BUILD_CACHE_KEY }}
25+
name: build-output
26+
27+
- name: Use default node version for install
28+
if: inputs.node_version && steps.dep-cache.outputs.cache-hit != 'true'
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version-file: 'package.json'
32+
33+
- name: Install dependencies
34+
if: steps.dep-cache.outputs.cache-hit != 'true'
35+
run: yarn install --ignore-engines --frozen-lockfile
36+
shell: bash
2037

21-
- name: Check if caches are restored
22-
uses: actions/github-script@v6
23-
if: steps.dep-cache.outputs.cache-hit != 'true' || steps.build-cache.outputs.cache-hit != 'true'
38+
- name: Revert node version to ${{ inputs.node_version }}
39+
if: inputs.node_version && steps.dep-cache.outputs.cache-hit != 'true'
40+
uses: actions/setup-node@v4
2441
with:
25-
script: core.setFailed('Dependency or build cache could not be restored - please re-run ALL jobs.')
42+
node-version: ${{ inputs.node_version }}

.github/dependabot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ updates:
1515
allow:
1616
- dependency-name: "@sentry/cli"
1717
- dependency-name: "@sentry/vite-plugin"
18+
- dependency-name: "@sentry/webpack-plugin"
19+
- dependency-name: "@sentry/rollup-plugin"
20+
- dependency-name: "@sentry/esbuild-plugin"
1821
- dependency-name: "@opentelemetry/*"
1922
- dependency-name: "@prisma/instrumentation"
20-
- dependency-name: "opentelemetry-instrumentation-fetch-node"
2123
versioning-strategy: increase
2224
commit-message:
2325
prefix: feat

0 commit comments

Comments
 (0)