add typed secrets and configs #214
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: PR CI Build | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| merge_group: | |
| types: | |
| - checks_requested | |
| permissions: | |
| checks: write | |
| pull-requests: write | |
| contents: read | |
| jobs: | |
| unit-test: | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 'true' | |
| steps: | |
| - name: Setup .Net | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - uses: actions/checkout@v6 | |
| - name: Restore | |
| run: dotnet restore --nologo src | |
| - name: Build | |
| run: dotnet build --no-restore --nologo --configuration Release src | |
| code-style: | |
| runs-on: ubuntu-latest | |
| env: | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 'true' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup .Net 10.0.x | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore | |
| run: dotnet restore --nologo src | |
| - name: .Net Format | |
| run: dotnet format --no-restore --verify-no-changes -v diag src |