From 9d14151d1c1f83fd62ee8cab439210133be7c3c7 Mon Sep 17 00:00:00 2001 From: abenettt Date: Tue, 18 Aug 2020 10:04:26 +0200 Subject: [PATCH 1/2] Test on all supported versions of go Update workflows to latest versions --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e81fa5..0bc3839 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,16 +5,16 @@ jobs: build: name: Build runs-on: ubuntu-latest + strategy: + matrix: + go: ['1.12', '1.13', '1.14', '1.15'] steps: - - name: Set up Go 1.14 - uses: actions/setup-go@v1 + - uses: actions/checkout@v2 + - name: Set up Go ${{ matrix.go }} + uses: actions/setup-go@v2 with: - go-version: 1.14 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v1 + go-version: ${{ matrix.go }} - name: Deps run: go mod download From 3a286a68b4dc2da2a4e2cd181b19c92df1ce1674 Mon Sep 17 00:00:00 2001 From: abenettt Date: Tue, 18 Aug 2020 12:21:34 +0200 Subject: [PATCH 2/2] Update min required go version --- .github/workflows/ci.yml | 2 +- go.mod | 4 ++-- go.sum | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bc3839..4033391 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.12', '1.13', '1.14', '1.15'] + go: ['1.13', '1.14', '1.15'] steps: - uses: actions/checkout@v2 diff --git a/go.mod b/go.mod index 870b30d..40ca197 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/apex/log -go 1.12 +go 1.13 require ( github.com/apex/logs v1.0.0 @@ -15,7 +15,7 @@ require ( github.com/jpillora/backoff v0.0.0-20180909062703-3050d21c67d7 // indirect github.com/kr/pretty v0.2.0 // indirect github.com/mattn/go-colorable v0.1.2 - github.com/pkg/errors v0.8.1 + github.com/pkg/errors v0.9.1 github.com/rogpeppe/fastuuid v1.1.0 github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9 // indirect github.com/smartystreets/gunit v1.0.0 // indirect diff --git a/go.sum b/go.sum index c491698..f367e3e 100644 --- a/go.sum +++ b/go.sum @@ -49,8 +49,8 @@ github.com/onsi/ginkgo v1.6.0 h1:Ix8l273rp3QzYgXSR+c8d1fTG7UPgYkOSELPhiY/YGw= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/gomega v1.5.0 h1:izbySO9zDPmjJ8rDjLvkA2zJHIo+HkYXHnf7eN7SSyo= github.com/onsi/gomega v1.5.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/fastuuid v1.1.0 h1:INyGLmTCMGFr6OVIb977ghJvABML2CMVjPoRfNDdYDo=