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