Update to .NET 10, speed up workflows, fix CVE and warnings #191
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 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| DOTNET_NOLOGO: 1 | |
| DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0.x | |
| cache: true | |
| cache-dependency-path: '**/packages.lock.json' | |
| - name: Restore | |
| run: dotnet restore Linq2GraphQL.CI.slnf --locked-mode | |
| - name: Build | |
| run: dotnet build Linq2GraphQL.CI.slnf --no-restore | |
| - name: Test | |
| run: dotnet test Linq2GraphQL.CI.slnf --no-build --verbosity normal |