From 6ec72eae26f0bf7623d1a47111add61315cc8e3d Mon Sep 17 00:00:00 2001 From: Matthew Rothenberg Date: Tue, 19 Apr 2022 20:12:35 -0400 Subject: [PATCH] build(ci): test matrix include go1.12 up to go1.18 (#30) * 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 --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7023b7d..b3cfbe9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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