forked from netobserv/netobserv-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 872 Bytes
/
pull_request.yml
File metadata and controls
38 lines (35 loc) · 872 Bytes
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
name: pull request checks
on:
pull_request:
branches: ['*']
jobs:
build-test:
name: Build, lint, test
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.23']
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Install make
run: sudo apt -y install make
- name: run build
run: make build && git diff --exit-code
- name: run unit tests
run: make test coverage-report
- name: check clean vendors
run: go mod vendor
- name: Report coverage
if: ${{ matrix.go == '1.23' }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./cover.out
flags: unittests
fail_ci_if_error: false
verbose: true