Skip to content

Commit a39349b

Browse files
committed
fixup
1 parent b996bd8 commit a39349b

File tree

16 files changed

+47
-1577
lines changed

16 files changed

+47
-1577
lines changed

.github/workflows/build-envs.yml

Lines changed: 0 additions & 258 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ jobs:
858858
matrix:
859859
test-application:
860860
[
861+
'cloudflare-astro',
861862
'node-express-app',
862863
'create-react-app',
863864
'create-next-app',
@@ -944,6 +945,17 @@ jobs:
944945
timeout-minutes: 5
945946
run: yarn test:assert
946947

948+
- name: Deploy Astro to Cloudflare
949+
uses: cloudflare/pages-action@v1
950+
if: matrix.test-application == 'cloudflare-astro'
951+
with:
952+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
953+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
954+
projectName: ${{ secrets.CLOUDFLARE_PROJECT_NAME }}
955+
directory: build
956+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
957+
workingDirectory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
958+
947959
job_required_jobs_passed:
948960
name: All required jobs passed or were skipped
949961
needs:

dev-packages/env-tests/cloudflare-astro/astro.config.mjs renamed to dev-packages/e2e-tests/test-applications/cloudflare-astro/astro.config.mjs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import cloudflare from '@astrojs/cloudflare';
2+
import sentry from '@sentry/astro';
13
import { defineConfig } from 'astro/config';
2-
import cloudflare from '@astrojs/cloudflare'
3-
import sentry from '@sentry/astro'
4+
5+
const dsn = process.env.E2E_TEST_DSN;
46

57
// https://astro.build/config
68
export default defineConfig({
@@ -10,13 +12,8 @@ export default defineConfig({
1012
}),
1113
integrations: [
1214
sentry({
13-
dsn: '',
14-
autoInstrumentation: {
15-
requestHandler: true,
16-
},
17-
sourceMapsUploadOptions: {
18-
enabled: false,
19-
},
15+
enabled: Boolean(dsn),
16+
dsn,
2017
clientInitPath: 'sentry.client.mjs',
2118
serverInitPath: 'sentry.server.mjs',
2219
}),
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"name": "@sentry-internal/env-tests-cloudflare-astro",
2+
"name": "cloudflare-astro",
33
"type": "module",
44
"version": "0.0.1",
55
"private": true,
66
"scripts": {
77
"dev": "astro dev",
88
"start": "astro dev",
9-
"build": "astro build",
9+
"build": "yarn build:bundle",
10+
"build:bundle": "astro build",
1011
"preview": "astro preview",
1112
"astro": "astro"
1213
},
@@ -15,5 +16,8 @@
1516
"@astrojs/cloudflare": "^8.0.2",
1617
"@sentry/astro": "7.92.0",
1718
"@sentry/profiling-node": "^1.3.2"
19+
},
20+
"volta": {
21+
"extends": "../../../package.json"
1822
}
1923
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as Sentry from '@sentry/astro'
1+
import * as Sentry from '@sentry/astro';
22

33
Sentry.init({
44
dsn: process.env.E2E_TEST_DSN,
55
tracesSampleRate: 1,
66
integrations: [],
7-
})
7+
});
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import * as Sentry from '@sentry/astro';
2+
import { ProfilingIntegration } from '@sentry/profiling-node';
3+
4+
Sentry.init({
5+
dsn: process.env.E2E_TEST_DSN,
6+
integrations: [new ProfilingIntegration()],
7+
});

dev-packages/env-tests/cloudflare-astro/sentry.server.mjs

Lines changed: 0 additions & 7 deletions
This file was deleted.

dev-packages/env-tests/cloudflare-astro/tsconfig.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@
8282
"dev-packages/e2e-tests",
8383
"dev-packages/node-integration-tests",
8484
"dev-packages/overhead-metrics",
85-
"dev-packages/rollup-utils",
86-
"dev-packages/env-tests/cloudflare-astro"
85+
"dev-packages/rollup-utils"
8786
],
8887
"devDependencies": {
8988
"@biomejs/biome": "^1.4.0",

0 commit comments

Comments
 (0)