1010 workflow_dispatch :
1111
1212env :
13- LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_API_KEY }}
14- TEST_IMAGE_NAME : public.ecr.aws/lambda/nodejs:18
13+ LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
14+ NODEJS_IMAGE_NAME : public.ecr.aws/lambda/nodejs
15+ NODE_VERSION : 22
1516
1617jobs :
1718 unit-test :
2021 - uses : actions/checkout@v6
2122 - uses : actions/setup-node@v6
2223 with :
23- node-version : 18
24+ node-version : ${{ env.NODE_VERSION }}
2425 - run : npm ci
2526 - run : npm test
2627
@@ -30,10 +31,10 @@ jobs:
3031 - uses : actions/checkout@v6
3132 - uses : actions/setup-node@v6
3233 with :
33- node-version : 18
34+ node-version : ${{ env.NODE_VERSION }}
3435
3536 - name : Pull test docker image
36- run : docker pull $TEST_IMAGE_NAME
37+ run : docker pull ${{ env.NODEJS_IMAGE_NAME }}:${{ env.NODE_VERSION }}
3738
3839 - name : Install dependencies
3940 run : npm ci
@@ -51,13 +52,15 @@ jobs:
5152 image-tag : " latest"
5253 use-pro : " true"
5354 env :
54- LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_API_KEY }}
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