Skip to content

SIANXSVC-1214: Replace codecov with codeclimate #146

SIANXSVC-1214: Replace codecov with codeclimate

SIANXSVC-1214: Replace codecov with codeclimate #146

Workflow file for this run

name: "Run tests"
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: Run tests (${{ matrix.dotnet-version }})
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
strategy:
matrix:
dotnet-version: ["6.0.x", "8.0.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "${{ matrix.dotnet-version }}"
- run: dotnet restore
- name: Run tests with coverage
run: dotnet test --no-restore --collect:"XPlat Code Coverage" /p:CoverletOutputFormat=cobertura --logger trx --results-directory "test-results"
- name: Upload coverage to Codeclimate
uses: paambaati/codeclimate-action@v5
with:
coverageLocations: ["test-results/**/coverage.cobertura.xml:cobertura"]

Check failure on line 32 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Run tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 32, Col: 28): A sequence was not expected