change path in dockerfile of ADS service #7
This file contains hidden or 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: .NET CI | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| checks: write | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore ./YarpGateway.sln | |
| - name: Build | |
| run: dotnet build --no-restore --configuration Release ./YarpGateway.sln | |
| - name: Run tests | |
| run: | | |
| cd Test/idpTesting | |
| dotnet test --no-build --configuration Release --logger "trx;LogFileName=test_results.trx" --results-directory TestResults | |
| - name: Publish Test Results | |
| uses: dorny/test-reporter@v1 | |
| if: always() | |
| with: | |
| name: xUnit IDP Tests | |
| path: Test/idpTesting/TestResults/**/*.trx | |
| reporter: dotnet-trx |