chore: warning-free from-source builds — null-forgiveness at guarded … #66
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: Test | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| pull_request: | |
| branches-ignore: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| postgres-version: [15, 16, 17] | |
| steps: | |
| - name: Install PostgreSQL | |
| uses: vb-consulting/postgresql-action@v1 | |
| with: | |
| postgresql version: '${{ matrix.postgres-version }}' | |
| postgresql user: 'postgres' | |
| postgresql password: 'postgres' | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET10 | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --configuration Release --no-restore | |
| - name: Test | |
| run: dotnet test --no-restore --verbosity m |