|
38 | 38 | url: ${{ secrets.ARTIFACTORY_URL_DEV }} |
39 | 39 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
40 | 40 | with: |
41 | | - go-version-file: 'go.mod' |
| 41 | + go-version-file: 'go.mod' |
| 42 | + cache: false |
| 43 | + - name: Download Go modules |
| 44 | + run: go mod download |
| 45 | + - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
| 46 | + with: |
| 47 | + path: | |
| 48 | + ~/.cache/go-build |
| 49 | + ~/go/pkg/mod |
| 50 | + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |
| 51 | + restore-keys: | |
| 52 | + ${{ runner.os }}-go- |
42 | 53 | - name: Setup Build Environment |
43 | 54 | run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@${{ env.NFPM_VERSION }} |
44 | 55 | - name: Build Packages |
|
50 | 61 | name: nginx-agent-unsigned-snapshots |
51 | 62 | path: build |
52 | 63 | retention-days: 1 |
53 | | - - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
54 | | - with: |
55 | | - path: | |
56 | | - ~/.cache/go-build |
57 | | - ~/go/pkg/mod |
58 | | - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |
59 | | - restore-keys: | |
60 | | - ${{ runner.os }}-go- |
61 | 64 |
|
62 | 65 | lint: |
63 | 66 | name: Lint |
|
73 | 76 | url: ${{ secrets.ARTIFACTORY_URL_DEV }} |
74 | 77 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
75 | 78 | with: |
76 | | - go-version-file: 'go.mod' |
| 79 | + go-version-file: 'go.mod' |
| 80 | + cache: false |
77 | 81 | - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
78 | 82 | with: |
79 | 83 | path: | |
@@ -101,7 +105,8 @@ jobs: |
101 | 105 | url: ${{ secrets.ARTIFACTORY_URL_DEV }} |
102 | 106 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
103 | 107 | with: |
104 | | - go-version-file: 'go.mod' |
| 108 | + go-version-file: 'go.mod' |
| 109 | + cache: false |
105 | 110 | - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
106 | 111 | with: |
107 | 112 | path: | |
@@ -130,7 +135,8 @@ jobs: |
130 | 135 | url: ${{ secrets.ARTIFACTORY_URL_DEV }} |
131 | 136 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
132 | 137 | with: |
133 | | - go-version-file: 'go.mod' |
| 138 | + go-version-file: 'go.mod' |
| 139 | + cache: false |
134 | 140 | - name: Run unit tests with race condition detection |
135 | 141 | run: make race-condition-test |
136 | 142 |
|
@@ -158,6 +164,7 @@ jobs: |
158 | 164 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
159 | 165 | with: |
160 | 166 | go-version-file: 'go.mod' |
| 167 | + cache: false |
161 | 168 | - name: Download Packages |
162 | 169 | uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
163 | 170 | with: |
@@ -207,6 +214,7 @@ jobs: |
207 | 214 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
208 | 215 | with: |
209 | 216 | go-version-file: 'go.mod' |
| 217 | + cache: false |
210 | 218 | - name: Download Packages |
211 | 219 | uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
212 | 220 | with: |
@@ -263,6 +271,7 @@ jobs: |
263 | 271 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
264 | 272 | with: |
265 | 273 | go-version-file: 'go.mod' |
| 274 | + cache: false |
266 | 275 | - name: Download Packages |
267 | 276 | uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
268 | 277 | with: |
@@ -329,6 +338,7 @@ jobs: |
329 | 338 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
330 | 339 | with: |
331 | 340 | go-version-file: 'go.mod' |
| 341 | + cache: false |
332 | 342 | - name: Download Packages |
333 | 343 | uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
334 | 344 | with: |
@@ -394,6 +404,7 @@ jobs: |
394 | 404 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
395 | 405 | with: |
396 | 406 | go-version-file: 'go.mod' |
| 407 | + cache: false |
397 | 408 | - name: Download Packages |
398 | 409 | uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2 |
399 | 410 | with: |
@@ -460,6 +471,7 @@ jobs: |
460 | 471 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
461 | 472 | with: |
462 | 473 | go-version-file: 'go.mod' |
| 474 | + cache: false |
463 | 475 | - name: Download Packages |
464 | 476 | uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2 |
465 | 477 | with: |
@@ -511,6 +523,7 @@ jobs: |
511 | 523 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
512 | 524 | with: |
513 | 525 | go-version-file: 'go.mod' |
| 526 | + cache: false |
514 | 527 | - name: Run Performance Tests |
515 | 528 | run: | |
516 | 529 | make performance-test |
@@ -542,6 +555,7 @@ jobs: |
542 | 555 | - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 |
543 | 556 | with: |
544 | 557 | go-version-file: 'go.mod' |
| 558 | + cache: false |
545 | 559 |
|
546 | 560 | - name: Download Packages |
547 | 561 | uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 |
|
0 commit comments