-
-
Notifications
You must be signed in to change notification settings - Fork 240
39 lines (38 loc) · 835 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: build
on:
push:
branches:
- develop
- master
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Check out code
uses: actions/checkout@v3
- name: Run Unit tests.
run: make test
- name: Upload Coverage report to CodeCov
uses: codecov/codecov-action@v1
with:
# token: ${{secrets.CODECOV_TOKEN}}
file: .coverprofile
build:
name: Build
runs-on: ubuntu-latest
needs: [test]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: make build