sonar.login is deprecated - switching to sonar.token #142
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Pre-Integration" | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
dotnet-build: | |
runs-on: windows-latest | |
steps: | |
- name: 🛒 Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: ⚙️ Setup dotnet 8.0.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: 📐 Ensure nuget.org added as package source on Windows | |
run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config | |
continue-on-error: true | |
- name: 🔁 Restore packages | |
run: dotnet restore | |
- name: 🛠️ Building library in release mode | |
run: dotnet build -c Release --no-restore | |
dotnet-test: | |
runs-on: windows-latest | |
needs: | |
- dotnet-build | |
steps: | |
- name: 🛒 Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: ⚙️ Setup dotnet 8.0.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: 📐 Ensure nuget.org added as package source on Windows | |
run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config | |
continue-on-error: true | |
- name: 🔁 Restore packages | |
run: dotnet restore | |
- name: 🛠️ Build | |
run: dotnet build -c Release --no-restore /p:UseSourceLink=true | |
- name: 🧪 Run unit tests | |
run: dotnet test -c Release --no-build |