feat(ToString): add configurable collection formatting to ToString generator
#292
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: Continuous Integration | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| - name: Install mono | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y mono-complete | |
| - name: Restore dependencies | |
| run: dotnet restore BB84.SourceGenerators.slnx | |
| - name: Build solution | |
| run: dotnet build BB84.SourceGenerators.slnx --configuration Release | |
| --no-restore | |
| - name: Run tests | |
| run: dotnet test BB84.SourceGenerators.slnx --configuration Release --no-build | |
| --verbosity normal --logger trx | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-results | |
| path: "**/TestResults/*.trx" | |
| - name: Validate NuGet package | |
| run: dotnet pack src/BB84.SourceGenerators/BB84.SourceGenerators.csproj | |
| --configuration Release --no-build --output ./artifacts | |
| - name: Upload NuGet package artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: nuget-package | |
| path: ./artifacts/*.nupkg |