Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Feature/sonarcloud test #256

Feature/sonarcloud test

Feature/sonarcloud test #256

Workflow file for this run

name: .NET Build and Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x
- name: Restore NuGet packages
run: dotnet restore test/**/*.csproj
- name: Build
run: dotnet build test/**/*.csproj
- name: Test
run: dotnet test test/**/*.csproj
- name: SonarCloud Scan
id: sonarcloud
uses: SonarSource/sonarcloud-github-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GTH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}