Skip to content

Commit 3dc2d2b

Browse files
committed
use proper auth token
1 parent a280b7b commit 3dc2d2b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/test-appsync-utils.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_API_KEY }}
13+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
1414
TEST_IMAGE_NAME: public.ecr.aws/lambda/nodejs:22
15+
NODE_VERSION: 22
1516

1617
jobs:
1718
unit-test:
@@ -20,7 +21,7 @@ jobs:
2021
- uses: actions/checkout@v6
2122
- uses: actions/setup-node@v6
2223
with:
23-
node-version: 22
24+
node-version: ${{ env.NODE_VERSION }}
2425
- run: npm ci
2526
- run: npm test
2627

@@ -30,7 +31,7 @@ jobs:
3031
- uses: actions/checkout@v6
3132
- uses: actions/setup-node@v6
3233
with:
33-
node-version: 22
34+
node-version: ${{ env.NODE_VERSION }}
3435

3536
- name: Pull test docker image
3637
run: docker pull $TEST_IMAGE_NAME
@@ -51,13 +52,15 @@ jobs:
5152
image-tag: "latest"
5253
use-pro: "true"
5354
env:
54-
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
55+
LOCALSTACK_AUTH_TOKEN: ${{ env.LOCALSTACK_AUTH_TOKEN }}
5556
APPSYNC_JS_LIBS_VERSION: ${{ github.sha }}
5657
DEBUG: "1"
5758
DISABLE_EVENTS: "1"
5859
- name: Ensure pro image is used
5960
run: curl -s http://localhost:4566/_localstack/health | grep appsync
6061
- uses: actions/setup-node@v6
62+
with:
63+
node-version: ${{ env.NODE_VERSION }}
6164
- name: Execute test script
6265
run: bash .github/execute-localstack-test.sh
6366
- name: Get the LocalStack logs

0 commit comments

Comments
 (0)