Add IaC support instead of relying to AWS Console #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automating build, tests and lambda packaging for Golang | ||
Check failure on line 1 in .github/workflows/go.yaml
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
jobs: | ||
build: | ||
if: ! startsWith(github.head_ref, 'refs/heads/iac/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21.1' | ||
- name: Build | ||
run: go build -C lambda -o build/go-serverless -v | ||
# - name: Test | ||
# run: go test -v lambda/... | ||
# this step will be done on the IaC level | ||
# - name: Zipping executable | ||
# run: zip -jrm lambda/build/go-serverless.zip lambda/build/go-serverless |