Skip to content

Commit e54af55

Browse files
committed
replace exisiting e2e tests
1 parent 0ea38b4 commit e54af55

File tree

19 files changed

+493
-225
lines changed

19 files changed

+493
-225
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,12 @@ jobs:
910910
- name: Set up Bun
911911
if: matrix.test-application == 'node-exports-test-app'
912912
uses: oven-sh/setup-bun@v2
913+
- name: Set up AWS SAM
914+
if: matrix.test-application == 'aws-serverless'
915+
uses: aws-actions/setup-sam@v2
916+
with:
917+
use-installer: true
918+
token: ${{ secrets.GITHUB_TOKEN }}
913919
- name: Restore caches
914920
uses: ./.github/actions/restore-cache
915921
with:
@@ -1031,12 +1037,6 @@ jobs:
10311037
uses: actions/setup-node@v4
10321038
with:
10331039
node-version-file: 'dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}/package.json'
1034-
- name: Set up AWS SAM
1035-
if: matrix.test-application == 'aws-lambda-sam'
1036-
uses: aws-actions/setup-sam@v2
1037-
with:
1038-
use-installer: true
1039-
token: ${{ secrets.GITHUB_TOKEN }}
10401040
- name: Restore caches
10411041
uses: ./.github/actions/restore-cache
10421042
with:

dev-packages/e2e-tests/test-applications/aws-lambda-sam/lambda-functions-layer/Cjs/index.js

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

dev-packages/e2e-tests/test-applications/aws-lambda-sam/lambda-functions-layer/Esm/index.mjs

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

dev-packages/e2e-tests/test-applications/aws-lambda-sam/lambda-functions-npm/Cjs/index.js

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

dev-packages/e2e-tests/test-applications/aws-lambda-sam/lambda-functions-npm/Esm/index.mjs

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

dev-packages/e2e-tests/test-applications/aws-lambda-sam/tests/lambda.test.ts

Lines changed: 0 additions & 174 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@sentry:registry=http://127.0.0.1:4873
2+
@sentry-internal:registry=http://127.0.0.1:4873

dev-packages/e2e-tests/test-applications/aws-lambda-sam/package.json renamed to dev-packages/e2e-tests/test-applications/aws-serverless/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:build": "pnpm install && npx rimraf node_modules/@sentry/aws-serverless/nodejs",
1010
"test:assert": "pnpm test"
1111
},
12-
"//": "We just need the AWS layer zip file, not the NPM package",
12+
"//": "We just need the @sentry/aws-serverless layer zip file, not the NPM package",
1313
"devDependencies": {
1414
"@aws-sdk/client-lambda": "^3.863.0",
1515
"@playwright/test": "~1.53.2",
@@ -23,8 +23,5 @@
2323
},
2424
"volta": {
2525
"extends": "../../package.json"
26-
},
27-
"sentryTest": {
28-
"optional": true
2926
}
3027
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exports.handler = async (event, context) => {
2+
throw new Error('test');
3+
};

0 commit comments

Comments
 (0)