Bring Buildvana.Sdk up to date #125
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: Build, test, and pack | |
| on: | |
| push: | |
| branches: [ main, 'v[0-9]+.[0-9]+' ] | |
| pull_request: | |
| branches: [ main, 'v[0-9]+.[0-9]+' ] | |
| jobs: | |
| build_test_pack: | |
| runs-on: windows-latest | |
| env: | |
| DOTNET_NOLOGO: 'true' | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 'true' | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 'true' | |
| DOTNET_CLI_UI_LANGUAGE: 'en-US' | |
| FEEDZ_IO_PRIVATE_TOKEN: ${{ secrets.FEEDZ_IO_PRIVATE_TOKEN }} | |
| steps: | |
| - name: Checkout repository with full history | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 # Checkout with full history so nbgv can compute Git height correctly. | |
| # Additional step to setup HEAD tracking origin/HEAD (Git 2.50+ doesn't do it automatically any longer) | |
| # https://github.com/actions/checkout/issues/2219 | |
| - name: Set up git references | |
| run: git remote set-head origin --auto | |
| - name: __TEMP__ List Git branches | |
| run: git branch -a -vv | |
| - name: Setup .NET SDK | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| global-json-file: global.json | |
| - name: Restore .NET tools | |
| shell: cmd | |
| run: dotnet tool restore | |
| - name: Run build script | |
| shell: cmd | |
| run: | | |
| if [%CAKE_VERBOSITY%]==[] set CAKE_VERBOSITY=Normal | |
| if [%RUNNER_DEBUG%]==[1] set CAKE_VERBOSITY=Diagnostic | |
| dotnet cake --target Pack --verbosity %CAKE_VERBOSITY% | |
| - name: Upload coverage to Codecov | |
| if: ${{ hashFiles('TestResults/Cobertura.xml') != '' }} | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| working-directory: TestResults | |
| files: Cobertura.xml | |
| verbose: true |