Skip to content

Commit 9f05156

Browse files
authored
Go 1.15 (#42)
* update go version in github actions * use latest go docker image * Update ci.yml * more changes * Update CHANGELOG.md
1 parent 8c88474 commit 9f05156

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
golangci:
66
strategy:
77
matrix:
8-
go-version: [1.14.x]
8+
go-version: [1.15.x]
99
platform: [ubuntu-latest]
1010
name: golangci-lint
1111
runs-on: ${{ matrix.platform }}
@@ -17,11 +17,11 @@ jobs:
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- run: |
20-
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.24.0 golangci-lint run -v
20+
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.31.0 golangci-lint run -v
2121
docker:
2222
strategy:
2323
matrix:
24-
go-version: [1.14.x]
24+
go-version: [1.15.x]
2525
platform: [ubuntu-latest]
2626
name: docker
2727
runs-on: ${{ matrix.platform }}
@@ -38,7 +38,7 @@ jobs:
3838
tests:
3939
strategy:
4040
matrix:
41-
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x]
41+
go-version: [1.13.x, 1.14.x, 1.15.x]
4242
platform: [ubuntu-latest, macos-latest]
4343
name: tests
4444
runs-on: ${{ matrix.platform }}
@@ -61,7 +61,7 @@ jobs:
6161
coverage:
6262
strategy:
6363
matrix:
64-
go-version: [1.14.x]
64+
go-version: [1.15.x]
6565
platform: [ubuntu-latest]
6666
name: coverage
6767
runs-on: ${{ matrix.platform }}

.golangci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ linters:
4747
- prealloc
4848
- gochecknoglobals
4949
- gofmt
50+
- godot
51+
- nlreturn
52+
- gofumpt
53+
- gci
54+
- goerr113
5055

5156
run:
5257
skip-dirs:
@@ -63,6 +68,6 @@ issues:
6368
# golangci.com configuration
6469
# https://github.com/golangci/golangci/wiki/Configuration
6570
service:
66-
golangci-lint-version: 1.24.x # use the fixed version to not introduce new linters unexpectedly
71+
golangci-lint-version: 1.31.x # use the fixed version to not introduce new linters unexpectedly
6772
prepare:
68-
- echo "here I can run custom commands, but no preparation needed for this repo"
73+
- echo "here I can run custom commands, but no preparation needed for this repo"

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
55

6+
## [0.7.0] 2020-09-26
7+
### Added
8+
- Run tests for Go 1.15
9+
10+
### Removed
11+
- Tests for Go 1.11 and Go 1.12
12+
13+
### Changed
14+
- Updated docker base image to 1.15.2
15+
- Updated version of golangci-lint to 1.31
16+
617
## [0.6.0] 2020-04-09
718
### Added
819
- Added -style markdown option

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.14.2-alpine3.11
1+
FROM golang:1.15.2-alpine3.12
22
RUN apk add --no-cache git
33
WORKDIR /home
44
COPY ./ .

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,9 @@ tests and avoid dependencies on modules not well maintained and documented.
173173

174174
## Supported Go versions
175175

176-
- 1.11.x
177-
- 1.12.x
178176
- 1.13.x
179177
- 1.14.x
178+
- 1.15.x
180179

181180
## Supported operating systems
182181

0 commit comments

Comments
 (0)