Skip to content

refactor: video e2e refactoring #142

refactor: video e2e refactoring

refactor: video e2e refactoring #142

Workflow file for this run

name: .NET Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Install SonarScanner
run: |
dotnet tool update --global dotnet-sonarscanner
- name: Install coverlet
id: install-coverlet
run: |
dotnet tool install --global dotnet-coverage
- uses: actions/checkout@v3
- name: Begin SonarScanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: dotnet-sonarscanner begin /k:"Vonage_vonage-dotnet-sdk" /o:"vonage" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
- name: Build
run: |
dotnet build --configuration Release .\Vonage.Common\Vonage.Common.csproj
dotnet build --configuration Release .\Vonage\Vonage.csproj
dotnet build --configuration Release .\Vonage.Server\Vonage.Server.csproj
dotnet build --configuration Release .\Vonage.Common.Test\Vonage.Common.Test.csproj -f net7.0
dotnet build --configuration Release .\Vonage.Test.Unit\Vonage.Test.Unit.csproj -f net7.0
dotnet build --configuration Release .\Vonage.Server.Test\Vonage.Server.Test.csproj -f net7.0
- name: Test
run: dotnet-coverage collect 'dotnet test --configuration Release --no-build -f net7.0 --filter Category!=Integration' -f xml -o 'coverage.xml'
env:
Vonage.Test.RsaPrivateKey: ${{ secrets.VONAGE_RSA_PRIVATE_KEY }}
- name: End SonarScanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"