Refine DeleteThisOnlyFn usage for proper current handling and enf…
#598
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: .NET build and test | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - ".github/workflows/dotnet-build-and-test.yaml" | |
| - "src/**" | |
| - "tests/**" | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - ".github/workflows/dotnet-build-and-test.yaml" | |
| - "src/**" | |
| - "tests/**" | |
| jobs: | |
| build-and-test: | |
| name: Build and Test (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest, windows-latest, macos-latest ] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| submodules: "recursive" | |
| lfs: true | |
| - name: Setup .NET 9.x | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.x' | |
| - name: Print debug info | |
| run: dotnet --info | |
| - name: Install dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore -c Release | |
| - name: Test | |
| run: dotnet test -c Release | |