diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 36417d57b5..b7b08cdc53 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -72,6 +72,10 @@ jobs: cache-dependency-path: "go.mod" - name: Run unit tests run: cd cli; make test + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} unit-test-server: name: API Server unit tests @@ -91,6 +95,10 @@ jobs: cache-dependency-path: "go.mod" - name: Run unit tests run: cd server; make test -B + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} unit-test-agent: name: Agent unit tests @@ -109,6 +117,10 @@ jobs: cache-dependency-path: "go.mod" - name: Run unit tests run: cd agent; make test -B + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} unit-test-web: name: WebUI unit tests