-
-
Notifications
You must be signed in to change notification settings - Fork 20
48 lines (40 loc) · 876 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
40
41
42
43
44
45
46
47
48
name: "Build"
on:
# push:
# branches:
# - main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
security-events: write
actions: read
contents: read
pull-requests: read
jobs:
test:
name: "Test and Build"
runs-on: ubuntu-latest
env:
MAKE_DEBUG: "true"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go 1.x
id: go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Go version
run: |
go version
- name: Test
run: make test
- name: codecov coverage report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage.out
- name: Build
run: make build