File tree Expand file tree Collapse file tree 4 files changed +11
-48
lines changed Expand file tree Collapse file tree 4 files changed +11
-48
lines changed Original file line number Diff line number Diff line change 1
- name : Go
1
+ name : CI
2
2
3
3
on :
4
4
push :
5
5
branches-ignore :
6
6
- ' release-*'
7
7
tags-ignore :
8
8
- ' *.*'
9
- - ' *.*.*'
10
9
11
10
jobs :
12
11
27
26
- name : Available platforms
28
27
run : echo ${{ steps.buildx.outputs.platforms }}
29
28
29
+ - name : Run checks
30
+ run : make ci
31
+
30
32
- name : Build
31
33
env :
32
- DOCKER_TOKEN : ${{ secrets.DOCKER_TOKEN }}
34
+ REGISTRY : appscodeci
35
+ DOCKER_TOKEN : ${{ secrets.DOCKERHUB_TOKEN }}
36
+ USERNAME : 1gtm
33
37
run : |
34
- docker login docker.pkg.github.com --username stashed --password ${DOCKER_TOKEN}
35
- make push REGISTRY=docker.pkg.github.com/stashed/postgres
38
+ docker login --username ${USERNAME} --password ${DOCKER_TOKEN}
39
+ make push
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ TAG := $(VERSION)_$(OS)_$(ARCH)
69
69
TAG_PROD := $(TAG )
70
70
TAG_DBG := $(VERSION ) -dbg_$(OS ) _$(ARCH )
71
71
72
- GO_VERSION ?= 1.12.10
72
+ GO_VERSION ?= 1.12.12
73
73
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION ) -stretch
74
74
75
75
OUTBIN = bin/$(OS ) _$(ARCH ) /$(BIN )
@@ -273,7 +273,7 @@ lint: $(BUILD_DIRS)
273
273
--env GO111MODULE=on \
274
274
--env GOFLAGS=" -mod=vendor" \
275
275
$(BUILD_IMAGE ) \
276
- golangci-lint run --enable $(ADDTL_LINTERS )
276
+ golangci-lint run --enable $(ADDTL_LINTERS ) --deadline=10m --skip-files= " generated.*\.go$ \" --skip-dirs-use-default --skip-dirs=client,vendor
277
277
278
278
$(BUILD_DIRS ) :
279
279
@mkdir -p $@
Original file line number Diff line number Diff line change @@ -26,27 +26,3 @@ TARGETS=$(for d in "$@"; do echo ./$d/...; done)
26
26
echo " Running tests:"
27
27
go test -installsuffix " static" ${TARGETS}
28
28
echo
29
-
30
- echo -n " Checking gofmt: "
31
- ERRS=$( find " $@ " -type f -name \* .go | xargs gofmt -l 2>&1 || true)
32
- if [ -n " ${ERRS} " ]; then
33
- echo " FAIL - the following files need to be gofmt'ed:"
34
- for e in ${ERRS} ; do
35
- echo " $e "
36
- done
37
- echo
38
- exit 1
39
- fi
40
- echo " PASS"
41
- echo
42
-
43
- echo -n " Checking go vet: "
44
- ERRS=$( go vet ${TARGETS} 2>&1 || true)
45
- if [ -n " ${ERRS} " ]; then
46
- echo " FAIL"
47
- echo " ${ERRS} "
48
- echo
49
- exit 1
50
- fi
51
- echo " PASS"
52
- echo
You can’t perform that action at this time.
0 commit comments