From 3ae6ec6cd779e3fac25aae2bd0fc6f78c503d3cd Mon Sep 17 00:00:00 2001 From: wenovus Date: Wed, 1 Sep 2021 10:38:49 -0700 Subject: [PATCH 1/3] Remove Travis CI file since we're already using GitHub Actions. --- .github/workflows/go.yml | 2 +- .travis.yml | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index dbffc4a..85bdd27 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ['1.12', '1.13', '1.14'] + go: ['1.15', '1.16', '1.17', '1.x'] steps: - name: Set up Go ${{ matrix.go }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 062799d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: go -go: - - 1.9.x - - 1.10.x - - 1.11.x - - master -script: - - go test ./... - - go test -race ./... - - diff -u <(echo -n) <(gofmt -d -s .) -after_success: - - ./scripts/coverage.sh From 3821ee54e5de08e3784f09843199eb0549f315d7 Mon Sep 17 00:00:00 2001 From: wenovus Date: Wed, 1 Sep 2021 10:53:02 -0700 Subject: [PATCH 2/3] Only post coverage for 1.x --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 85bdd27..faf1636 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -43,6 +43,7 @@ jobs: run: go test -race ./... - name: Send Coverage + if: ${{ matrix.go == '1.x' }} uses: shogo82148/actions-goveralls@v1 with: path-to-profile: profile.cov From 9018ef49da5254bf390cd4afff80db7966fae64f Mon Sep 17 00:00:00 2001 From: wenovus Date: Wed, 1 Sep 2021 10:57:02 -0700 Subject: [PATCH 3/3] Only post coverage once --- .github/workflows/go.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index faf1636..521c9b8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -47,17 +47,6 @@ jobs: uses: shogo82148/actions-goveralls@v1 with: path-to-profile: profile.cov - parallel: true - name: Check gofmt run: diff -u <(echo -n) <(gofmt -d -s .) - - finish: - needs: build - runs-on: ubuntu-latest - steps: - - uses: shogo82148/actions-goveralls@v1 - with: - parallel-finished: true - -