@@ -20,19 +20,26 @@ permissions:
2020
2121env :
2222 NFPM_VERSION : ' v2.35.3'
23- GOPROXY : " https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev "
23+ GOPROXY : " direct "
2424
2525jobs :
26- set-vars :
26+ proxy-sanity-check :
27+ name : Proxy Sanity Check
2728 runs-on : ubuntu-22.04
29+ if : ${{ !github.event.pull_request.head.repo.fork }}
30+ env :
31+ GOPROXY : " https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev"
2832 steps :
29- - name : Set Variables
33+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
34+ with :
35+ fetch-tags : ' true'
36+ - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
37+ with :
38+ go-version-file : ' go.mod'
39+ cache : false
40+ - name : run goproxy-sanity-check
3041 run : |
31- if [[ -z ${{ secrets.ARTIFACTORY_USER }} ]] ||
32- [[ -z ${{ secrets.ARTIFACTORY_TOKEN }} ]] ||
33- ${{ github.event.pull_request.head.repo.fork }}; then
34- echo "GOPROXY=direct" >> $GITHUB_ENV
35- fi
42+ make build
3643
3744 lint :
3845 name : Lint
4754 run : make install-tools
4855 - name : run lint
4956 run : make lint
57+
5058 unit-test :
5159 name : Unit Tests
5260 runs-on : ubuntu-22.04
6371 with :
6472 config : ./.testcoverage.yaml
6573 # # when token is not specified (value '') this feature is turned off
66- git-token : ${{ github.ref_name == 'v3 ' && secrets.GITHUB_TOKEN || '' }}
74+ git-token : ${{ github.ref_name == 'main ' && secrets.GITHUB_TOKEN || '' }}
6775 # # name of orphaned branch where badges are stored
6876 git-branch : badges
77+
6978 race-condition-test :
7079 name : Unit tests with race condition detection
7180 runs-on : ubuntu-22.04
@@ -77,11 +86,14 @@ jobs:
7786 cache : false
7887 - name : Run unit tests with race condition detection
7988 run : make race-condition-test
89+
8090 build-unsigned-snapshot :
8191 name : Build Unsigned Snapshot
8292 runs-on : ubuntu-22.04
8393 steps :
8494 - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
95+ with :
96+ fetch-tags : ' true'
8597 - uses : actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
8698 with :
8799 go-version-file : ' go.mod'
@@ -247,7 +259,7 @@ jobs:
247259 gh-pages-branch : " benchmark-results"
248260 fail-on-alert : true
249261 - name : Push benchmark result
250- if : ${{ success() && github.ref_name == 'v3 '}}
262+ if : ${{ success() && github.ref_name == 'main '}}
251263 run : git push 'https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/nginx/agent.git' benchmark-results:benchmark-results
252264 load-tests :
253265 name : Load Tests
@@ -314,10 +326,10 @@ jobs:
314326 benchmark-data-dir-path : " "
315327 # Set auto-push to false since GitHub API token is not given
316328 auto-push : false
317- alert-threshold : ' 175 %'
329+ alert-threshold : ' 125 %'
318330 gh-pages-branch : " benchmark-results"
319331 fail-on-alert : true
320332
321333 - name : Push load test result
322- if : ${{ success() && github.ref_name == 'v3' }}
334+ if : ${{ success() && github.ref_name == 'main' }}
323335 run : git push 'https://github-actions:${{ secrets.GITHUB_TOKEN }}@github.com/nginx/agent.git' benchmark-results:benchmark-results
0 commit comments