Skip to content

Commit

Permalink
problem with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteDecoder committed Jul 20, 2020
1 parent cf00e6d commit 16e5abb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions src/codeclimate_code_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $?
./codeclimate-test-reporter after-build -t lcov -r ${CC_TEST_REPORTER_ID} -p ./ --exit-code $?

0 comments on commit 16e5abb

Please sign in to comment.