From 16e5abb61d4c7b567c7bfe4b69f7b4bc529793be Mon Sep 17 00:00:00 2001 From: Rodrigo Reyes Date: Mon, 20 Jul 2020 12:52:52 -0500 Subject: [PATCH] problem with github actions --- .github/workflows/blank.yml | 2 ++ src/codeclimate_code_coverage.sh | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 9bc02ad..6fa7d26 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -22,5 +22,7 @@ jobs: - name: Build run: cd src && dotnet build --configuration Release --no-restore - name: Test + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} run: cd src && ./codeclimate_code_coverage.sh #run: cd src && dotnet test --no-restore --verbosity normal diff --git a/src/codeclimate_code_coverage.sh b/src/codeclimate_code_coverage.sh index 87b0361..c44cf41 100755 --- a/src/codeclimate_code_coverage.sh +++ b/src/codeclimate_code_coverage.sh @@ -9,11 +9,9 @@ dotnet add package coverlet.msbuild # Start codeclimate process ./codeclimate-test-reporter before-build -echo "Running test" - # Running unit tests - 'lcov' output format (and put coverage in correct path) dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=coverage /p:Exclude=[xunit.*]* ./Queryology.sln --no-restore --verbosity normal mkdir coverage && mv ./Queryology.Tests/coverage.info coverage/lcov.info # Send test report result to codeclimate -./codeclimate-test-reporter after-build -t lcov -r ${{ secrets.CC_TEST_REPORTER_ID }} -p ./ --exit-code $? \ No newline at end of file +./codeclimate-test-reporter after-build -t lcov -r ${CC_TEST_REPORTER_ID} -p ./ --exit-code $? \ No newline at end of file