Skip to content

Release 1.0.1

Release 1.0.1 #163

Workflow file for this run

name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore Auth0.AspNetCore.Authentication.Api.sln
- name: Build
run: dotnet build Auth0.AspNetCore.Authentication.Api.sln --configuration Release --no-restore
- name: Run Unit tests
run: dotnet test tests/Auth0.AspNetCore.Authentication.Api.UnitTests/Auth0.AspNetCore.Authentication.Api.UnitTests.csproj --collect:"XPlat Code coverage" --results-directory ./TestResults/ /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
- name: Run Integration tests
env:
BASIC_DOMAIN: ${{ secrets.BASIC_DOMAIN }}
BASIC_AUDIENCE: ${{ secrets.BASIC_AUDIENCE }}
BASIC_CLIENT_ID: ${{ secrets.BASIC_CLIENT_ID }}
BASIC_CLIENT_SECRET: ${{ secrets.BASIC_CLIENT_SECRET }}
DPOP_ALLOWED_DOMAIN: ${{ secrets.DPOP_ALLOWED_DOMAIN }}
DPOP_ALLOWED_AUDIENCE: ${{ secrets.DPOP_ALLOWED_AUDIENCE }}
DPOP_ALLOWED_CLIENT_ID: ${{ secrets.DPOP_ALLOWED_CLIENT_ID }}
DPOP_ALLOWED_CLIENT_SECRET: ${{ secrets.DPOP_ALLOWED_CLIENT_SECRET }}
DPOP_ALLOWED_DPOP_MODE: ${{ secrets.DPOP_ALLOWED_DPOP_MODE }}
DPOP_REQUIRED_DOMAIN: ${{ secrets.DPOP_REQUIRED_DOMAIN }}
DPOP_REQUIRED_AUDIENCE: ${{ secrets.DPOP_REQUIRED_AUDIENCE }}
DPOP_REQUIRED_CLIENT_ID: ${{ secrets.DPOP_REQUIRED_CLIENT_ID }}
DPOP_REQUIRED_CLIENT_SECRET: ${{ secrets.DPOP_REQUIRED_CLIENT_SECRET }}
DPOP_REQUIRED_DPOP_MODE: ${{ secrets.DPOP_REQUIRED_DPOP_MODE }}
CUSTOM_DOMAIN_1_DOMAIN: ${{ secrets.CUSTOM_DOMAIN_1_DOMAIN}}
CUSTOM_DOMAIN_1_AUDIENCE: ${{ secrets.CUSTOM_DOMAIN_1_AUDIENCE}}
CUSTOM_DOMAIN_1_CLIENT_ID: ${{ secrets.CUSTOM_DOMAIN_1_CLIENT_ID}}
CUSTOM_DOMAIN_1_CLIENT_SECRET: ${{ secrets.CUSTOM_DOMAIN_1_CLIENT_SECRET}}
CUSTOM_DOMAIN_2_DOMAIN: ${{ secrets.CUSTOM_DOMAIN_2_DOMAIN}}
CUSTOM_DOMAIN_2_AUDIENCE: ${{ secrets.CUSTOM_DOMAIN_2_AUDIENCE}}
CUSTOM_DOMAIN_2_CLIENT_ID: ${{ secrets.CUSTOM_DOMAIN_2_CLIENT_ID}}
CUSTOM_DOMAIN_2_CLIENT_SECRET: ${{ secrets.CUSTOM_DOMAIN_2_CLIENT_SECRET}}
run: dotnet test tests/Auth0.AspNetCore.Authentication.Api.IntegrationTests/Auth0.AspNetCore.Authentication.Api.IntegrationTests.csproj --collect:"XPlat Code coverage" --results-directory ./TestResults/ /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura
- name: Update codecov report
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # pin@7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./TestResults/**/coverage.cobertura.xml
fail_ci_if_error: false
verbose: true