diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 66322f09..6a36fbc8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -88,8 +88,11 @@ jobs: find ./outputs -name "*.coverage.txt" -exec sh -c 'cp $1 .tmp/coverage/$(echo $1 | sed "s/[\/.]/-/g" ).coverage.txt' _ {} \; find ./outputs -name "*.report.json" -exec sh -c 'cp $1 .tmp/report/$(echo $1 | sed "s/[\/.]/-/g" ).report.json' _ {} \; - - name: Publish the coverage for main branch - run: bash <(curl -s https://codecov.io/bash) + - name: Code coverage + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: .tmp/ - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master