diff --git a/.github/workflows/test-appsync-utils.yml b/.github/workflows/test-appsync-utils.yml index 7518702..09d130f 100644 --- a/.github/workflows/test-appsync-utils.yml +++ b/.github/workflows/test-appsync-utils.yml @@ -41,6 +41,8 @@ jobs: - name: Integration test with LocalStack invoke method run: bash ./test_in_docker.sh + env: + TEST_IMAGE_NAME: ${{ env.NODEJS_IMAGE_NAME }}:${{ env.NODE_VERSION }} localstack-test: runs-on: ubuntu-latest diff --git a/package-lock.json b/package-lock.json index 57d8545..a6526ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "license": "Apache-2.0", "dependencies": { - "uuid": "^13.0.0" + "uuid": "^14.0.0" }, "devDependencies": { "@aws-appsync/utils": "^2.1.1", @@ -5473,9 +5473,9 @@ } }, "node_modules/uuid": { - "version": "13.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz", - "integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.0.tgz", + "integrity": "sha512-Qo+uWgilfSmAhXCMav1uYFynlQO7fMFiMVZsQqZRMIXp0O7rR7qjkj+cPvBHLgBqi960QCoo/PH2/6ZtVqKvrg==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" diff --git a/package.json b/package.json index 0148681..1bc940f 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,6 @@ "jest": "^30.3.0" }, "dependencies": { - "uuid": "^13.0.0" + "uuid": "^14.0.0" } } diff --git a/test_in_docker.sh b/test_in_docker.sh index 8dd29d3..e9d6507 100755 --- a/test_in_docker.sh +++ b/test_in_docker.sh @@ -7,6 +7,10 @@ set -euo pipefail # This script both runs the test, and acts as its own entrypoint if [ -z ${TEST_IN_DOCKER_ENTRYPOINT:-} ]; then + if [ -z "${TEST_IMAGE_NAME:-}" ]; then + echo "WARNING: TEST_IMAGE_NAME is not set. Set it to the docker image to use for testing. eg. public.ecr.aws/lambda/nodejs:22" + exit 1 + fi # test script echo Test script $0 script_path=$(readlink -f $0) @@ -18,7 +22,7 @@ if [ -z ${TEST_IN_DOCKER_ENTRYPOINT:-} ]; then --workdir /test \ --entrypoint bash \ -e TEST_IN_DOCKER_ENTRYPOINT=1 \ - ${TEST_IMAGE_NAME:-public.ecr.aws/lambda/nodejs:18} /test_in_docker.sh + ${TEST_IMAGE_NAME} /test_in_docker.sh else # entrypoint echo Entrypoint