diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0b2a83a..19f45c7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,7 @@ updates: schedule: interval: "weekly" + - package-ecosystem: "npm" + directory: "/cdk" + schedule: + interval: "weekly" diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index 79bc2f6..30e231a 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -8,11 +8,11 @@ permissions: jobs: dependabot: runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' + if: github.actor == 'dependabot[bot]' && github.repository == 'localstack/appsync-utils' steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1 + uses: dependabot/fetch-metadata@v2 with: github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Enable auto-merge for Dependabot PRs diff --git a/.github/workflows/test-appsync-utils.yml b/.github/workflows/test-appsync-utils.yml index 1b7d48a..eb845cc 100644 --- a/.github/workflows/test-appsync-utils.yml +++ b/.github/workflows/test-appsync-utils.yml @@ -10,8 +10,9 @@ on: workflow_dispatch: env: - LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_API_KEY }} - TEST_IMAGE_NAME: public.ecr.aws/lambda/nodejs:18 + LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }} + NODEJS_IMAGE_NAME: public.ecr.aws/lambda/nodejs + NODE_VERSION: 22 jobs: unit-test: @@ -20,7 +21,7 @@ jobs: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - run: npm ci - run: npm test @@ -30,10 +31,10 @@ jobs: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: - node-version: 18 + node-version: ${{ env.NODE_VERSION }} - name: Pull test docker image - run: docker pull $TEST_IMAGE_NAME + run: docker pull ${{ env.NODEJS_IMAGE_NAME }}:${{ env.NODE_VERSION }} - name: Install dependencies run: npm ci @@ -51,13 +52,15 @@ jobs: image-tag: "latest" use-pro: "true" env: - LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_API_KEY }} + LOCALSTACK_AUTH_TOKEN: ${{ env.LOCALSTACK_AUTH_TOKEN }} APPSYNC_JS_LIBS_VERSION: ${{ github.sha }} DEBUG: "1" DISABLE_EVENTS: "1" - name: Ensure pro image is used run: curl -s http://localhost:4566/_localstack/health | grep appsync - uses: actions/setup-node@v6 + with: + node-version: ${{ env.NODE_VERSION }} - name: Execute test script run: bash .github/execute-localstack-test.sh - name: Get the LocalStack logs