Repository navigation
build(deps): Bump actions/setup-dotnet from 6.0.0 to 6.1.0 #55
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| # Builds and tests untrusted pull request code; the token only needs to read the repository. | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-test: | |
| name: build-test (${{ matrix.os }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # macOS runners bill at 10x in a private repository, so pull requests build on Linux and | |
| # Windows only. macOS is built when a release is tagged (release.yml), and the code it | |
| # alone runs (MacTelHandlerRegistration) is thin interop no test here could exercise. | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore | |
| run: dotnet restore Freizeichen.slnx --locked-mode | |
| - name: Build | |
| run: dotnet build Freizeichen.slnx -c Release --no-restore | |
| - name: Test | |
| run: dotnet test Freizeichen.slnx -c Release --no-build | |
| - name: Format check | |
| if: matrix.os == 'ubuntu-latest' | |
| run: dotnet format Freizeichen.slnx --verify-no-changes --no-restore |