File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Commit subject
2- on : [push, pull_request]
2+ on : [pull_request]
33jobs :
44 check :
55 runs-on : ubuntu-latest
66 steps :
7- - name : Check out code
8- uses : actions/checkout@v2
9- with :
10- fetch-depth : 0
117 - name : check-commit
128 uses : docker://haproxytech/check-commit:latest
9+ env :
10+ API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ golangci-lint:
1919 script :
2020 - golangci-lint cache clean && go clean -modcache -cache -i
2121 - golangci-lint run -v --color always --timeout 120s
22+ only :
23+ - merge_requests
24+ - branches
2225lint-commit-msg :
2326 stage : lint
2427 image :
@@ -28,6 +31,8 @@ lint-commit-msg:
2831 - go
2932 script :
3033 - /check
34+ only :
35+ - merge_requests
3136
3237build :
3338 stage : build
4348 - go env
4449 - go mod verify
4550 - make build
51+ only :
52+ - merge_requests
53+ - branches
4654
4755.e2e :
4856 stage : e2e
6169 - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY_GO
6270 script :
6371 - bash -x ./e2e/run.bash
72+ only :
73+ - merge_requests
74+ - branches
6475
6576HAProxy_2_1 :
6677 extends : .e2e
You can’t perform that action at this time.
0 commit comments