Skip to content

Commit

Permalink
Go 1.15 (#42)
Browse files Browse the repository at this point in the history
* update go version in github actions

* use latest go docker image

* Update ci.yml

* more changes

* Update CHANGELOG.md
  • Loading branch information
psampaz authored Sep 26, 2020
1 parent 8c88474 commit 9f05156
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
golangci:
strategy:
matrix:
go-version: [1.14.x]
go-version: [1.15.x]
platform: [ubuntu-latest]
name: golangci-lint
runs-on: ${{ matrix.platform }}
Expand All @@ -17,11 +17,11 @@ jobs:
with:
go-version: ${{ matrix.go-version }}
- run: |
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.24.0 golangci-lint run -v
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.31.0 golangci-lint run -v
docker:
strategy:
matrix:
go-version: [1.14.x]
go-version: [1.15.x]
platform: [ubuntu-latest]
name: docker
runs-on: ${{ matrix.platform }}
Expand All @@ -38,7 +38,7 @@ jobs:
tests:
strategy:
matrix:
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x]
go-version: [1.13.x, 1.14.x, 1.15.x]
platform: [ubuntu-latest, macos-latest]
name: tests
runs-on: ${{ matrix.platform }}
Expand All @@ -61,7 +61,7 @@ jobs:
coverage:
strategy:
matrix:
go-version: [1.14.x]
go-version: [1.15.x]
platform: [ubuntu-latest]
name: coverage
runs-on: ${{ matrix.platform }}
Expand Down
9 changes: 7 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ linters:
- prealloc
- gochecknoglobals
- gofmt
- godot
- nlreturn
- gofumpt
- gci
- goerr113

run:
skip-dirs:
Expand All @@ -63,6 +68,6 @@ issues:
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.24.x # use the fixed version to not introduce new linters unexpectedly
golangci-lint-version: 1.31.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"
- echo "here I can run custom commands, but no preparation needed for this repo"
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file.

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

## [0.7.0] 2020-09-26
### Added
- Run tests for Go 1.15

### Removed
- Tests for Go 1.11 and Go 1.12

### Changed
- Updated docker base image to 1.15.2
- Updated version of golangci-lint to 1.31

## [0.6.0] 2020-04-09
### Added
- Added -style markdown option
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.14.2-alpine3.11
FROM golang:1.15.2-alpine3.12
RUN apk add --no-cache git
WORKDIR /home
COPY ./ .
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,9 @@ tests and avoid dependencies on modules not well maintained and documented.

## Supported Go versions

- 1.11.x
- 1.12.x
- 1.13.x
- 1.14.x
- 1.15.x

## Supported operating systems

Expand Down

0 comments on commit 9f05156

Please sign in to comment.