Skip to content

Commit

Permalink
fix failing ci (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshCasper authored Jun 3, 2024
1 parent 3de8494 commit 310e138
Show file tree
Hide file tree
Showing 6 changed files with 1,387 additions and 1,598 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ node_modules/
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# Python
.venv/

# LocalStack
logs.txt
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ usage: ## Show this help

install: ## Install dependencies
@test -e node_modules || yarn install
@which serverless || yarn add serverless
@which localstack || pip install localstack
@which awslocal || pip install awscli-local
@test -e .venv || (python3 -m venv .venv; source .venv/bin/activate; pip install -r requirements.txt)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"license": "Apache-2.0",
"repository": "https://github.com/localstack/appsync-graphql-api-sample",
"devDependencies": {
"serverless": "^2.0.0",
"serverless-localstack": "^1.0.5",
"serverless": "^3.0.0",
"serverless-localstack": "^1.2.0",
"serverless-appsync-plugin": "1.1.2",
"serverless-deployment-bucket": "^1.1.0"
},
Expand Down
6 changes: 6 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/bin/bash
set -e

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

# Create a new S3 bucket
awslocal s3 mb s3://testbucket

# Deploy the Serverless app to the local environment and run the tests
echo "Deploying Serverless app to local environment"; \
SLS_DEBUG=1 yarn deploy && \
echo "Serverless app successfully deployed." && \
Expand Down
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ service: test-appsync

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs18.x
deploymentBucket:
name: testbucket

Expand Down
Loading

0 comments on commit 310e138

Please sign in to comment.