Skip to content

Commit

Permalink
build(ci): test matrix include go1.12 up to go1.18 (#30)
Browse files Browse the repository at this point in the history
* build(ci): test matrix include go1.12 up to go1.18

This tests back from the version specified in go.mod to current stable.
This should enable detection of any breaking version changes as part of
the dependencies update PR.

subtask forked from #28.

* build(ci): disable fail-fast to test all go versions

* build(ci): bump version of golangci-lint to v1.45.2
  • Loading branch information
mroth authored Apr 20, 2022
1 parent e9f389d commit 6ec72ea
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.15', '1.14' ]
go: [ '1.18', '1.17', '1.16', '1.15', '1.14', '1.13', '1.12' ]
fail-fast: false
name: Go ${{ matrix.go }} test
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Go stable version
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Install GolangCI-Lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2
- name: Test with coverage
run: make cover
- name: Upload code coverage to codecov
if: matrix.go == '1.15'
if: matrix.go == '1.18'
uses: codecov/codecov-action@v1
with:
file: ./coverage.out
Expand Down

0 comments on commit 6ec72ea

Please sign in to comment.