diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e6ebb55..e3cf31a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,7 +38,7 @@ jobs: - name: Run tests run: go test -v -covermode=count - coverage: + coverage-coveralls: runs-on: ubuntu-latest steps: - name: Install Go @@ -63,3 +63,23 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: coverage.lcov + + coverage-codeclimate: + runs-on: ubuntu-latest + steps: + - name: Install Go + if: success() + uses: actions/setup-go@v2 + with: + go-version: 1.15.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Test + run: go test -cover -coverprofile=c.out -covermode=atomic -race -v ./... + - name: Upload Codeclimate Coverage + uses: paambaati/codeclimate-action@v2.7.5 + with: + prefix: github.com/echo-go/dto-lib/ + coverageLocations: ${{ github.workspace }}/c.out:gocov + env: + CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_REPORTER_ID }}