Feat: Add GitHub Actions Workflow for CI/CD (#21)

Add GitHub Actions Workflow for CI/CD (#21)
This commit is contained in:
Gabriel Prando 2024-07-24 18:31:20 -03:00 committed by GitHub
parent 8be7e5c197
commit 42b391fe9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 159 additions and 0 deletions

21
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,21 @@
on: [workflow_call]
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Go and dependencies
uses: ./.github/actions/setup-go-and-deps
- name: build
run: CGO_ENABLED=0 go build -o main .
- name: upload builded artifact
uses: actions/upload-artifact@v4
with:
name: main-${{github.sha}}
path: main