File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 66 branches : [ '**' ]
77jobs :
88 build :
9+ if : github.event_name == 'push'
910 runs-on : [self-hosted, linux, x64]
1011 steps :
1112 - uses : actions/checkout@v2
@@ -45,19 +46,22 @@ jobs:
4546 - name : Test race
4647 run : go test -race ./...
4748 shellcheck :
49+ if : github.event_name == 'push'
4850 name : Shellcheck
4951 runs-on : self-hosted
5052 steps :
5153 - uses : actions/checkout@v2
5254 - name : Run ShellCheck
5355 uses : ludeeus/action-shellcheck@master
5456 hadolint :
57+ if : github.event_name == 'push'
5558 runs-on : self-hosted
5659 name : Hadolint
5760 steps :
5861 - uses : actions/checkout@v2
5962 - run : wget -q https://github.com/hadolint/hadolint/releases/download/v2.10.0/hadolint-Linux-x86_64 -O hadolint; chmod +x hadolint ; find . -type f \( -name "Dockerfile*" \) -print0 | xargs -n 1 -0 ./hadolint ;
6063 gofmt-imports :
64+ if : github.event_name == 'push'
6165 runs-on : self-hosted
6266 name : Go Fmt and Go Import
6367 steps :
7175 gofmt -l .
7276 shell: bash
7377 golangci :
78+ if : github.event_name == 'push'
7479 runs-on : self-hosted
7580 name : lint
7681 steps :
8590 # skip-go-installation: true
8691 # Additional linting tools can be added here
8792 args : --enable=golint --timeout=5m
93+ image :
94+ runs-on : self-hosted
95+ name : build image
96+ if : github.event_name == 'pull_request'
97+ steps :
98+ - uses : actions/checkout@v2
99+ - name : docker
100+ run : docker build . -t planner
101+ - name : clean image
102+ run : docker rmi planner -f
You can’t perform that action at this time.
0 commit comments