Skip to content

Bump @aws-sdk/client-appsync from 3.683.0 to 3.687.0 #25

Bump @aws-sdk/client-appsync from 3.683.0 to 3.687.0

Bump @aws-sdk/client-appsync from 3.683.0 to 3.687.0 #25

name: Test AppSync utils
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
TEST_IMAGE_NAME: public.ecr.aws/lambda/nodejs:16
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm test
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Pull test docker image
run: docker pull $TEST_IMAGE_NAME
- name: Install dependencies
run: npm ci
- name: Integration test with LocalStack invoke method
run: bash ./test_in_docker.sh
localstack-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start LocalStack
uses: LocalStack/[email protected]
with:
image-tag: "latest"
use-pro: "true"
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
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@v4
- name: Execute test script
run: bash .github/execute-localstack-test.sh
- name: Get the LocalStack logs
if: success() || failure()
run: |
localstack logs | gzip > logs.txt.gz
- name: Upload the logs as an artifact
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: ls-logs-${{ github.run_number }}
path: |
logs.txt.gz
retention-days: 7
- name: Print the LocalStack logs
if: success() || failure()
run: |
gunzip -c logs.txt.gz