Skip to content

Commit 38e5bdb

Browse files
committed
fix failing ci
1 parent 3de8494 commit 38e5bdb

File tree

6 files changed

+1387
-1598
lines changed

6 files changed

+1387
-1598
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,9 @@ node_modules/
2020
.yarn/build-state.yml
2121
.yarn/install-state.gz
2222
.pnp.*
23+
24+
# Python
25+
.venv/
26+
27+
# LocalStack
28+
logs.txt

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ usage: ## Show this help
99

1010
install: ## Install dependencies
1111
@test -e node_modules || yarn install
12-
@which serverless || yarn add serverless
1312
@which localstack || pip install localstack
1413
@which awslocal || pip install awscli-local
1514
@test -e .venv || (python3 -m venv .venv; source .venv/bin/activate; pip install -r requirements.txt)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"license": "Apache-2.0",
44
"repository": "https://github.com/localstack/appsync-graphql-api-sample",
55
"devDependencies": {
6-
"serverless": "^2.0.0",
7-
"serverless-localstack": "^1.0.5",
6+
"serverless": "^3.0.0",
7+
"serverless-localstack": "^1.2.0",
88
"serverless-appsync-plugin": "1.1.2",
99
"serverless-deployment-bucket": "^1.1.0"
1010
},

run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#!/bin/bash
2+
set -e
23

4+
# Set the AppSync URL to the local endpoint
35
APPSYNC_URL=http://localhost:4566/graphql
46

7+
# Create a new S3 bucket
8+
awslocal s3 mb s3://testbucket
9+
10+
# Deploy the Serverless app to the local environment and run the tests
511
echo "Deploying Serverless app to local environment"; \
612
SLS_DEBUG=1 yarn deploy && \
713
echo "Serverless app successfully deployed." && \

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ service: test-appsync
22

33
provider:
44
name: aws
5-
runtime: nodejs12.x
5+
runtime: nodejs18.x
66
deploymentBucket:
77
name: testbucket
88

0 commit comments

Comments
 (0)