@@ -3,17 +3,17 @@ name: CI
33on :
44 push :
55 branches :
6- - ' v3'
7- - ' release-*'
6+ - ' v3'
7+ - ' release-*'
88 paths-ignore :
9- - " **.md"
10- - " docs/**"
11- - " hugo/**"
9+ - " **.md"
10+ - " docs/**"
11+ - " hugo/**"
1212 pull_request :
1313 types :
14- - opened
15- - reopened
16- - synchronize
14+ - opened
15+ - reopened
16+ - synchronize
1717
1818env :
1919 NFPM_VERSION : ' v2.35.3'
@@ -26,62 +26,62 @@ jobs:
2626 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2727 - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2828 with :
29- go-version-file : ' go.mod'
30- cache : false
29+ go-version-file : ' go.mod'
30+ cache : false
3131 - name : run install-tools
3232 run : make install-tools
3333 - name : run lint
3434 run : make lint
3535 unit-test :
36- name : Unit Tests
37- runs-on : ubuntu-22.04
38- steps :
39- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
40- - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
41- with :
42- go-version-file : ' go.mod'
43- cache : false
44- - name : Run Unit Tests
45- run : make unit-test
46- - name : Check Coverage
47- uses : vladopajic/go-test-coverage@dd4b1f21c4e48db0425e1187d2845404b1206919
48- with :
49- config : ./.testcoverage.yaml
50- # # when token is not specified (value '') this feature is turned off
51- git-token : ${{ github.ref_name == 'v3' && secrets.GITHUB_TOKEN || '' }}
52- # # name of orphaned branch where badges are stored
53- git-branch : badges
36+ name : Unit Tests
37+ runs-on : ubuntu-22.04
38+ steps :
39+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
40+ - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
41+ with :
42+ go-version-file : ' go.mod'
43+ cache : false
44+ - name : Run Unit Tests
45+ run : make unit-test
46+ - name : Check Coverage
47+ uses : vladopajic/go-test-coverage@dd4b1f21c4e48db0425e1187d2845404b1206919
48+ with :
49+ config : ./.testcoverage.yaml
50+ # # when token is not specified (value '') this feature is turned off
51+ git-token : ${{ github.ref_name == 'v3' && secrets.GITHUB_TOKEN || '' }}
52+ # # name of orphaned branch where badges are stored
53+ git-branch : badges
5454 race-condition-test :
55- name : Unit tests with race condition detection
56- runs-on : ubuntu-22.04
57- steps :
58- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
59- - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
60- with :
61- go-version-file : ' go.mod'
62- cache : false
63- - name : Run unit tests with race condition detection
64- run : make race-condition-test
55+ name : Unit tests with race condition detection
56+ runs-on : ubuntu-22.04
57+ steps :
58+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
59+ - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
60+ with :
61+ go-version-file : ' go.mod'
62+ cache : false
63+ - name : Run unit tests with race condition detection
64+ run : make race-condition-test
6565 build-unsigned-snapshot :
66- name : Build Unsigned Snapshot
67- runs-on : ubuntu-22.04
68- steps :
69- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
70- - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
71- with :
72- go-version-file : ' go.mod'
73- cache : false
74- - name : Setup Build Environment
75- run : go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
76- - name : Build Packages
77- run : |
78- make clean local-deb-package local-rpm-package local-apk-package
79- - name : Upload Artifacts
80- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
81- with :
82- name : nginx-agent-unsigned-snapshots
83- path : build
84- retention-days : 1
66+ name : Build Unsigned Snapshot
67+ runs-on : ubuntu-22.04
68+ steps :
69+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
70+ - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
71+ with :
72+ go-version-file : ' go.mod'
73+ cache : false
74+ - name : Setup Build Environment
75+ run : go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }}
76+ - name : Build Packages
77+ run : |
78+ make clean local-deb-package local-rpm-package local-apk-package
79+ - name : Upload Artifacts
80+ uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
81+ with :
82+ name : nginx-agent-unsigned-snapshots
83+ path : build
84+ retention-days : 1
8585
8686 integration-tests :
8787 name : Integration Tests
@@ -90,12 +90,12 @@ jobs:
9090 strategy :
9191 matrix :
9292 container :
93- - image : " ubuntu"
94- version : " 22.04"
95- - image : " redhatenterprise"
96- version : " 9"
97- - image : " alpine"
98- version : " 3.19"
93+ - image : " ubuntu"
94+ version : " 22.04"
95+ - image : " redhatenterprise"
96+ version : " 9"
97+ - image : " alpine"
98+ version : " 3.19"
9999 steps :
100100 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
101101 - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
@@ -160,26 +160,26 @@ jobs:
160160 strategy :
161161 matrix :
162162 container :
163- - image : " alpine"
164- version : " 3.20"
165- plus : " r32"
166- release : " alpine"
167- path : " /nginx-plus/agent"
168- - image : " alpine"
169- version : " 3.19"
170- plus : " r31"
171- release : " alpine"
172- path : " /nginx-plus/agent"
173- - image : " debian"
174- version : " bookworm"
175- plus : " r32"
176- release : " debian"
177- path : " /nginx-plus/agent"
178- - image : " debian"
179- version : " bookworm"
180- plus : " r31"
181- release : " debian"
182- path : " /nginx-plus/agent"
163+ - image : " alpine"
164+ version : " 3.20"
165+ plus : " r32"
166+ release : " alpine"
167+ path : " /nginx-plus/agent"
168+ - image : " alpine"
169+ version : " 3.19"
170+ plus : " r31"
171+ release : " alpine"
172+ path : " /nginx-plus/agent"
173+ - image : " debian"
174+ version : " bookworm"
175+ plus : " r32"
176+ release : " debian"
177+ path : " /nginx-plus/agent"
178+ - image : " debian"
179+ version : " bookworm"
180+ plus : " r31"
181+ release : " debian"
182+ path : " /nginx-plus/agent"
183183 steps :
184184 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
185185 - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
0 commit comments