Skip to content

🎉 Create new example (#1) #3

🎉 Create new example (#1)

🎉 Create new example (#1) #3

Workflow file for this run

name: Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full depth (not shallow) for better relevancy of Sonar analysis
- name: Use .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
# Begin ci-build.ps1
- name: dotnet restore
run: dotnet restore
- name: dotnet build
run: dotnet build -c release --no-restore
- name: dotnet test
run: dotnet test -c release --no-build
# End ci-build.ps1
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}