Skip to content

Commit 8aa3d80

Browse files
authoredOct 29, 2024
Update go.yml
1 parent 023e520 commit 8aa3d80

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎.github/workflows/go.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Go CI
22

3+
# Dispara o workflow em eventos específicos, como push ou pull_request
34
on:
45
push:
56
branches:
@@ -9,19 +10,23 @@ on:
910
- main
1011

1112
jobs:
12-
1313
build:
1414
runs-on: ubuntu-latest
15+
1516
steps:
1617
# Verifica o código do repositório
1718
- name: Check out code
1819
uses: actions/checkout@v3
19-
20+
2021
# Configura a versão do Go
2122
- name: Set up Go
2223
uses: actions/setup-go@v4
2324
with:
24-
go-version: '1.20'
25+
go-version: '^1.20' # Coloque a versão que está usando, ou defina uma mais recente
26+
27+
# Instala as dependências do projeto
28+
- name: Install dependencies
29+
run: go mod tidy
2530

2631
# Executa os testes
2732
- name: Run tests

0 commit comments

Comments
 (0)
Please sign in to comment.