Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ updates:
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/cdk"
schedule:
interval: "weekly"
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice additional safety check here!

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
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test-appsync-utils.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down
Loading