Skip to content

Commit 1a77b0b

Browse files
authored
Appsync/fix ci (#186)
1 parent d835e14 commit 1a77b0b

3 files changed

Lines changed: 15 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ updates:
1010
schedule:
1111
interval: "weekly"
1212

13+
- package-ecosystem: "npm"
14+
directory: "/cdk"
15+
schedule:
16+
interval: "weekly"

.github/workflows/dependabot-automerge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ permissions:
88
jobs:
99
dependabot:
1010
runs-on: ubuntu-latest
11-
if: github.actor == 'dependabot[bot]'
11+
if: github.actor == 'dependabot[bot]' && github.repository == 'localstack/appsync-utils'
1212
steps:
1313
- name: Dependabot metadata
1414
id: metadata
15-
uses: dependabot/fetch-metadata@v1
15+
uses: dependabot/fetch-metadata@v2
1616
with:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"
1818
- name: Enable auto-merge for Dependabot PRs

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

Lines changed: 9 additions & 6 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 }}
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

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: 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

Comments
 (0)