-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.03 KB
/
ci.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: CI
on:
push:
branches:
- main
paths-ignore:
- 'CHANGELOG.md'
pull_request:
jobs:
main_ci:
runs-on: ubuntu-22.04
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # we need this because fetch-tags=true and because of a GHA bug: https://github.com/actions/checkout/issues/1471
fetch-tags: true
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Run build
run: |
make build
- name: Run lint
run: |
make FIX=0 lint
- name: Run test
run: |
make test-unit
- name: Run Doc
run: |
make doc
- name: Run integration tests
run: |
make test-integration
- name: Run git checks
run: |
make no-dirty
- name: Run clean
run: |
make clean
- name: Run git checks (after clean)
run: |
make no-dirty