task: bump SwiftCollections to v5.1.0 #32
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-and-test | |
| on: | |
| push: | |
| branches-ignore: | |
| - 'dependabot/**' | |
| - 'gh-pages' | |
| tags-ignore: | |
| - 'v*' | |
| pull_request: | |
| branches: | |
| - 'main' | |
| - 'develop' | |
| jobs: | |
| validate-dotnet: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| configuration: [Release, ReleaseLean] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 10.0.x | |
| - name: Setup GitVersion | |
| uses: gittools/actions/gitversion/setup@v4 | |
| with: | |
| versionSpec: '6.4.x' | |
| - name: Execute GitVersion | |
| id: gitversion | |
| uses: gittools/actions/gitversion/execute@v4 | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.nuget/packages | |
| key: ${{ runner.os }}-${{ matrix.configuration }}-nuget-${{ hashFiles('**/*.csproj', '**/*.slnx') }} | |
| restore-keys: | | |
| ${{ runner.os }}-${{ matrix.configuration }}-nuget- | |
| ${{ runner.os }}-nuget- | |
| - name: Restore dependencies | |
| run: dotnet restore GridForge.slnx --property:Configuration=${{ matrix.configuration }} | |
| - name: Build Solution | |
| run: | | |
| echo "Version: ${{ steps.gitversion.outputs.fullSemVer }}" | |
| echo "Assembly Version: ${{ steps.gitversion.outputs.assemblySemFileVer }}" | |
| dotnet build GridForge.slnx --configuration ${{ matrix.configuration }} --no-restore | |
| - name: Run Tests | |
| run: dotnet test GridForge.slnx --configuration ${{ matrix.configuration }} --no-build --verbosity normal | |
| validate-wiki-sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - name: Validate wiki link rewrite helper | |
| run: PYTHONDONTWRITEBYTECODE=1 python3 .github/scripts/rewrite_wiki_links_for_github_wiki_tests.py |