diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index db431f33..fe282c07 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,6 +23,24 @@ jobs: ${{ runner.os }}-go- - name: Run build run: make + - name: Generate code coverage artifacts + uses: actions/upload-artifact@v2 + with: + name: code-coverage + path: coverage.out + coverage: + runs-on: ubuntu-latest + needs: + - build + steps: + - name: Get code coverage artifact + uses: actions/download-artifact@v2 + with: + name: code-coverage + - name: Upload code coverage information to codecov.io + uses: codecov/codecov-action@v2 + with: + files: coverage.out lint: runs-on: ubuntu-latest steps: