File tree Expand file tree Collapse file tree 4 files changed +358
-42
lines changed Expand file tree Collapse file tree 4 files changed +358
-42
lines changed Original file line number Diff line number Diff line change 7
7
name : Check
8
8
runs-on : ubuntu-latest
9
9
# Execute the checks inside the container instead the VM.
10
- container : golangci/golangci-lint:v1.27.0 -alpine
10
+ container : golangci/golangci-lint:v1.34.1 -alpine
11
11
steps :
12
12
- uses : actions/checkout@v1
13
13
- run : golangci-lint run -E goimports
@@ -16,10 +16,10 @@ jobs:
16
16
name : Test
17
17
runs-on : ubuntu-latest
18
18
steps :
19
- - uses : actions/checkout@v1
20
- - uses : actions/setup-go@v1
19
+ - uses : actions/checkout@v2
20
+ - uses : actions/setup-go@v2
21
21
with :
22
- go-version : 1.14
22
+ go-version : 1.15
23
23
- run : make ci-test
24
24
25
25
release-image :
34
34
runs-on : ubuntu-latest
35
35
# Only run in master and when has a tag.
36
36
steps :
37
- - name : Set tag on VERSION env var
38
- run : echo ::set-env name=VERSION::$(echo ${GITHUB_REF:10})
39
- - uses : actions/checkout@v1
37
+ - run : echo "VERSION=${GITHUB_REF#refs/*/}" >> ${GITHUB_ENV} # Sets VERSION env var.
38
+ - uses : actions/checkout@v2
40
39
- name : Build image
41
40
run : make build-image
42
41
- name : Docker login
Original file line number Diff line number Diff line change 1
- FROM golang:1.14
1
+ FROM golang:1.15
2
2
3
- ARG GOLANGCI_LINT_VERSION="1.25.0"
3
+ ARG GOLANGCI_LINT_VERSION="1.34.1"
4
+ ARG MOCKERY_VERSION="2.5.1"
4
5
ARG ostype=Linux
5
6
6
7
RUN apt-get update && apt-get install -y \
@@ -11,9 +12,13 @@ RUN apt-get update && apt-get install -y \
11
12
12
13
RUN wget https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_LINT_VERSION}/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz && \
13
14
tar zxvf golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz --strip 1 -C /usr/local/bin/ && \
14
- rm golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz
15
+ rm golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz && \
16
+ \
17
+ wget https://github.com/vektra/mockery/releases/download/v${MOCKERY_VERSION}/mockery_${MOCKERY_VERSION}_Linux_x86_64.tar.gz && \
18
+ tar zxvf mockery_${MOCKERY_VERSION}_Linux_x86_64.tar.gz -C /tmp && \
19
+ mv /tmp/mockery /usr/local/bin/ && \
20
+ rm mockery_${MOCKERY_VERSION}_Linux_x86_64.tar.gz
15
21
16
- RUN go get -u github.com/vektra/mockery/...
17
22
18
23
# Create user.
19
24
ARG uid=1000
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ require (
5
5
github.com/gin-gonic/gin v1.6.3
6
6
github.com/go-telegram-bot-api/telegram-bot-api v4.6.4+incompatible
7
7
github.com/oklog/run v1.1.0
8
- github.com/prometheus/alertmanager v0.20 .0
8
+ github.com/prometheus/alertmanager v0.21 .0
9
9
github.com/prometheus/client_golang v1.6.0
10
10
github.com/prometheus/common v0.10.0
11
- github.com/sirupsen/logrus v1.6 .0
12
- github.com/slok/go-http-metrics v0.7 .0
13
- github.com/stretchr/testify v1.6.0
11
+ github.com/sirupsen/logrus v1.7 .0
12
+ github.com/slok/go-http-metrics v0.8 .0
13
+ github.com/stretchr/testify v1.6.1
14
14
github.com/technoweenie/multipartstreamer v1.0.1 // indirect
15
15
gopkg.in/alecthomas/kingpin.v2 v2.2.6
16
16
)
17
17
18
- go 1.14
18
+ go 1.15
You can’t perform that action at this time.
0 commit comments