Skip to content

Commit c649cbc

Browse files
authored
Update GitHub Actions workflow for Go project
Updated Go version and modified branch filter for push events. Added build step for the application.
1 parent e7a8909 commit c649cbc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
push:
88
branches:
9-
- main
9+
- "**"
1010

1111
jobs:
1212
test:
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: '1.24.1'
23+
go-version: "1.21"
2424
cache: true
2525

2626
- name: Download dependencies
@@ -32,6 +32,9 @@ jobs:
3232
- name: Run go vet
3333
run: go vet ./...
3434

35+
- name: Build application
36+
run: go build -v ./...
37+
3538
- name: Run tests
3639
run: go test -v -race -coverprofile=coverage.out ./...
3740

0 commit comments

Comments
 (0)