File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : CI
3+
4+ on :
5+ push :
6+ branches : [main, rhobs-obs-api-konflux]
7+ pull_request :
8+ branches : [main, rhobs-obs-api-konflux]
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Go
17+ uses : actions/setup-go@v5
18+ with :
19+ go-version : ' 1.24'
20+
21+ - name : Build
22+ run : |
23+ make build
24+ git diff --exit-code
25+
26+ lint :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@v4
30+
31+ - name : Set up Go
32+ uses : actions/setup-go@v5
33+ with :
34+ go-version : ' 1.24'
35+
36+ - name : Install dependencies
37+ run : sudo apt-get update && sudo apt-get install -y xz-utils
38+
39+ - name : Lint
40+ run : make lint --always-make
41+
42+ test :
43+ runs-on : ubuntu-latest
44+ steps :
45+ - uses : actions/checkout@v4
46+
47+ - name : Set up Go
48+ uses : actions/setup-go@v5
49+ with :
50+ go-version : ' 1.24'
51+
52+ - name : Install dependencies
53+ run : |
54+ sudo apt-get update && sudo apt-get -y install xz-utils unzip openssl
55+
56+ - name : Test
57+ run : make test --always-make
58+
59+ test-e2e :
60+ runs-on : ubuntu-latest
61+ steps :
62+ - uses : actions/checkout@v4
63+
64+ - name : Set up Go
65+ uses : actions/setup-go@v5
66+ with :
67+ go-version : ' 1.24'
68+
69+ - name : End-to-end tests
70+ run : make test-e2e
71+
72+ generate :
73+ runs-on : ubuntu-latest
74+ steps :
75+ - uses : actions/checkout@v4
76+
77+ - name : Set up Go
78+ uses : actions/setup-go@v5
79+ with :
80+ go-version : ' 1.24'
81+
82+ - name : Install dependencies
83+ run : sudo apt-get update && sudo apt-get -y install unzip
84+
85+ - name : Generate and validate
86+ run : |
87+ make generate validate --always-make
88+ make proto
89+ git diff --exit-code
You can’t perform that action at this time.
0 commit comments