Skip to content

ci: refactored CI, fixing SonarCloud/CodeCov integration, added CodeQL #299

ci: refactored CI, fixing SonarCloud/CodeCov integration, added CodeQL

ci: refactored CI, fixing SonarCloud/CodeCov integration, added CodeQL #299

Workflow file for this run

name: .NET Core
on: [push, pull_request]
jobs:
dotnet:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
6.0.x
5.0.x
3.1.x
2.1.x
- name: dotnet info
run: dotnet --info
# https://github.com/actions/runner-images/blob/ubuntu22/20230821.1/images/linux/Ubuntu2204-Readme.md
# There is an issue with latest SDK on Linux with .NET Framework:
# https://github.com/microsoft/vstest/issues/4549
# Unfortunatey, it becomes preinstalled with latest GitHub runner images, so have to remove it for now.
- name: Remove latest .NET SDK (7.0.400)
if: matrix.os != 'windows-latest'
run: sudo rm -rf ${DOTNET_ROOT}/sdk/7.0.400
- run: dotnet test -c Release