Skip to content

Commit

Permalink
ci: fixed golang report generation
Browse files Browse the repository at this point in the history
Signed-off-by: William Artero <git@artero.dev>
  • Loading branch information
wwmoraes committed Dec 5, 2023
1 parent a1661da commit bfcce72
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/integration.yml
Expand Up @@ -34,11 +34,12 @@ on:
- sonar-project.properties

env:
GOLANG_VERSION: "1.20"
GOLANG_FLAGS: -race -mod=readonly
WORK_DIR: /usr/src
GOLANG_INTEGRATION_SRC_PATH: cmd/internal/integration
GOLANG_MERGED_GOCOV_FILE: merged.txt
GOLANG_RUN_REPORT_FILE: run-report.json
GOLANG_REPORT_SOURCE: merged.txt
GOLANG_VERSION: "1.20"
WORK_DIR: /usr/src

permissions:
contents: read
Expand Down Expand Up @@ -253,7 +254,7 @@ jobs:
if: always()
with:
name: coverage-report
path: ${{ env.GOLANG_REPORT_SOURCE }}
path: ${{ env.GOLANG_MERGED_GOCOV_FILE }}
- name: upload run report
uses: actions/upload-artifact@v3
if: always()
Expand Down Expand Up @@ -314,7 +315,7 @@ jobs:
with:
flags: -X fixes
files: >-
${{ env.GOLANG_REPORT_SOURCE }}
${{ env.GOLANG_MERGED_GOCOV_FILE }}
${{ env.GOLANG_RUN_REPORT_FILE }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit bfcce72

Please sign in to comment.