From e407b4f3a39d8432c476c3be8a22c1ff35f4c8cb Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Sat, 3 Dec 2022 12:15:00 -0500 Subject: [PATCH] Update go.yml Trying to use Go text matrix with Coveralls.io --- .github/workflows/go.yml | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b6a9df3..b2b5d29 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,34 +10,40 @@ on: branches: [ "master" ] jobs: - test_go118: + test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go: + - '1.19' + - '1.18' + - '1.17' steps: - uses: actions/checkout@v3 - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.18 + go-version: ${{ matrix.go }} - name: Build - run: go build -v + run: go build - name: Test - run: go test -v + run: go test -v -coverprofile=profile.cov - test_go119: + - name: coveralls.io + uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov + flag-name: Go-${{ matrix.go }} + parallel: true + + finish: + needs: test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.19 - - - name: Build - run: go build -v - - - name: Test - run: go test -v + - uses: shogo82148/actions-goveralls@v1 + with: + parallel-finished: true