Merge pull request #12 from aminbenmansour/dependabot/github_actions/… #27
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 | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
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/... | |
- name: Zipping executable | |
run: zip -jrm lambda/build/go-serverless.zip lambda/build/go-serverless |