Merge pull request #2117 from microsoft/fix/no-more-nullable-property #7
Workflow file for this run
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: CI/CD Pipeline | |
| on: [push, pull_request, workflow_dispatch] | |
| permissions: | |
| contents: read | |
| jobs: | |
| ci: | |
| name: Continuous Integration | |
| runs-on: ubuntu-latest | |
| env: | |
| ARTIFACTS_FOLDER: ${{ github.workspace }}/Artifacts | |
| GITHUB_RUN_NUMBER: ${{ github.run_number }} | |
| steps: | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Checkout repository | |
| id: checkout_repo | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| fetch-depth: 0 | |
| - name: Build projects | |
| id: build_projects | |
| shell: pwsh | |
| run: | | |
| dotnet build Microsoft.OpenApi.sln -c Release | |
| - name: Run unit tests | |
| id: run_unit_tests | |
| shell: pwsh | |
| run: | | |
| dotnet test Microsoft.OpenApi.sln -c Release -v n | |
| validate-trimming: | |
| name: Validate Project for Trimming | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.x | |
| - name: Validate Trimming warnings | |
| run: dotnet publish -c Release -r win-x64 /p:TreatWarningsAsErrors=true /warnaserror -f net8.0 | |
| working-directory: ./test/Microsoft.OpenApi.Trimming.Tests |