Skip to content

Commit 30b806c

Browse files
Create go.yml
Go workflow which builds, tests and sends coverage.
1 parent 7f92107 commit 30b806c

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/go.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Go
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: '1.22.1'
23+
24+
- name: Install dependencies
25+
run: |
26+
go get .
27+
28+
- name: Build
29+
run: go build -v ./...
30+
31+
- name: Test
32+
run: go test -v ./...
33+
34+
- name: Send coverage
35+
uses: shogo82148/actions-goveralls@v1
36+
with:
37+
path-to-profile: profile.cov

0 commit comments

Comments
 (0)