ci: split PR checks into explicit job groups #1
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: Examples Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ main, master, develop ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| examples-core: | |
| name: ${{ matrix.name }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: examples:core / BillingQuotas | |
| command: dotnet run --project Examples/Core/BillingQuotas/BillingQuotas.csproj -c Release --no-restore | |
| - name: examples:core / FeatureFlags | |
| command: dotnet run --project Examples/Core/FeatureFlags/FeatureFlags.csproj -c Release --no-restore | |
| - name: examples:core / IamRoles | |
| command: dotnet run --project Examples/Core/IamRoles/IamRoles.csproj -c Release --no-restore | |
| - name: examples:core / WorkflowApprovals | |
| command: dotnet run --project Examples/Core/WorkflowApprovals/WorkflowApprovals.csproj -c Release --no-restore | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore ModularityKit.Mutator.slnx | |
| - name: Run ${{ matrix.name }} | |
| run: ${{ matrix.command }} | |
| examples-governance: | |
| name: ${{ matrix.name }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: examples:governance / RequestLifecycle | |
| command: dotnet run --project Examples/Governance/RequestLifecycle/RequestLifecycle.csproj -c Release --no-restore | |
| - name: examples:governance / GovernedExecution | |
| command: dotnet run --project Examples/Governance/GovernedExecution/GovernedExecution.csproj -c Release --no-restore | |
| - name: examples:governance / DecisionTaxonomy | |
| command: dotnet run --project Examples/Governance/DecisionTaxonomy/DecisionTaxonomy.csproj -c Release --no-restore | |
| - name: examples:governance / ApprovalWorkflow | |
| command: dotnet run --project Examples/Governance/ApprovalWorkflow/ApprovalWorkflow.csproj -c Release --no-restore | |
| - name: examples:governance / VersionedResolution | |
| command: dotnet run --project Examples/Governance/VersionedResolution/VersionedResolution.csproj -c Release --no-restore | |
| - name: examples:governance / Queries | |
| command: dotnet run --project Examples/Governance/Queries/Queries.csproj -c Release --no-restore | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore ModularityKit.Mutator.slnx | |
| - name: Run ${{ matrix.name }} | |
| run: ${{ matrix.command }} | |
| examples-governance-redis: | |
| name: examples:governance / RedisQueries | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Restore | |
| run: dotnet restore ModularityKit.Mutator.slnx | |
| - name: Start Redis | |
| working-directory: Examples/Governance/RedisQueries | |
| run: docker compose up -d | |
| - name: Run RedisQueries | |
| env: | |
| MODULARITYKIT_REDIS: localhost:6379 | |
| run: dotnet run --project Examples/Governance/RedisQueries/RedisQueries.csproj -c Release --no-restore | |
| - name: Stop Redis | |
| if: ${{ always() }} | |
| working-directory: Examples/Governance/RedisQueries | |
| run: docker compose down |