Skip to content

Update docker-image.yml #4

Update docker-image.yml

Update docker-image.yml #4

Workflow file for this run

name: Go Build and Test
on:
push:
branches:
- main # ajuste conforme a nome da sua branch principal
pull_request:
branches:
- main # ajuste conforme a nome da sua branch principal
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22 # ajuste conforme a versão do seu Go
- name: Install dependencies
run: go mod tidy
- name: Build
run: go build -o payroll-api ./cmd/main.go
- name: Run tests
run: go test ./...