Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fonteeboa committed Dec 2, 2023
2 parents ac4667f + 576a63c commit d6f9e1b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Go Unit Tests

on:
push:
branches: [ main ] # Executar quando ocorrer push na branch main
pull_request:
branches: [ main ] # Executar quando houver pull request na branch main

jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21' # Usar a versão mais recente da série 1.21 do Go

- name: Run unit tests
run: go test -v ./... # Comando para executar os testes unitários

0 comments on commit d6f9e1b

Please sign in to comment.