Skip to content

Using cobertura format #8

Using cobertura format

Using cobertura format #8

Workflow file for this run

name: .NET
on: [push]
env:
CC_TEST_REPORTER_ID: ${{ vars.CC_TEST_REPORTER_ID }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build & Test
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter
chmod +x ./codeclimate-test-reporter
dotnet tool install --global cake.tool
./codeclimate-test-reporter before-build
dotnet-cake --target=Coverage
mv ./coverage/Cobertura.xml ./coverage/cobertura.xml
./codeclimate-test-reporter after-build -t cobertura -r ${CC_TEST_REPORTER_ID} -p ./ --exit-code $?