Skip to content

Merge pull request #3 from jackmcguire1/dependabot/go_modules/github.… #83

Merge pull request #3 from jackmcguire1/dependabot/go_modules/github.…

Merge pull request #3 from jackmcguire1/dependabot/go_modules/github.… #83

Workflow file for this run

on:
push:
branches:
- main
env:
ARCH: GOARCH=arm64
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-go@v3
- uses: aws-actions/setup-sam@v2
with:
use-installer: true
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- run: sam build --parameter-overrides Runtime=provided.al2 Handler=bootstrap Architecture=arm64 ApiKey=${{ secrets.OPENAI_API_KEY }}
- run: sam deploy --stack-name chat-gpt --s3-bucket ${{ secrets.S3_BUCKET }} --parameter-overrides Runtime=provided.al2 Handler=bootstrap Architecture=arm64 ApiKey=${{ secrets.OPENAI_API_KEY }} --capabilities CAPABILITY_IAM