This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
chore(deps): update dependency verify.xunit to v23.2.3 (#639) #582
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: Build solution and run tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pull-requests: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build project and run tests | |
runs-on: ubuntu-latest | |
env: | |
CONFIGURATION: 'Release' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build -c ${{ env.CONFIGURATION }} --no-restore | |
- name: Test | |
env: | |
AzureAD__Audience: ${{ vars.AZUREAD_AUDIENCE }} | |
AzureAD__ClientId: ${{ vars.AZUREAD_CLIENTID }} | |
AzureAD__Domain: ${{ vars.AZUREAD_DOMAIN }} | |
AzureAD__Instance: ${{ vars.AZUREAD_INSTANCE }} | |
AzureAD__TenantId: ${{ vars.AZURE_TENANT_ID }} | |
UserAuthenticationSettings__Audience: ${{ vars.AZUREAD_AUDIENCE }} | |
UserAuthenticationSettings__ClientId: ${{ vars.INTEGRATION_TEST_CLIENT_ID }} | |
UserAuthenticationSettings__Password: ${{ secrets.INTEGRATION_TEST_PASSWORD }} | |
UserAuthenticationSettings__TenantId: ${{ vars.AZURE_TENANT_ID }} | |
UserAuthenticationSettings__Username: ${{ vars.INTEGRATION_TEST_USERNAME }} | |
run: dotnet test -c ${{ env.CONFIGURATION }} --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: 'coverage/**/coverage.cobertura.xml' | |
fail_ci_if_error: true |