Skip to content

Commit 3e751f0

Browse files
committed
Split example checks into a separate workflow
1 parent 35acbc2 commit 3e751f0

2 files changed

Lines changed: 102 additions & 92 deletions

File tree

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: Examples Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [ main, master, develop ]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
examples-core:
13+
name: ${{ matrix.name }}
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- name: examples:core / BillingQuotas
21+
command: dotnet run --project Examples/Core/BillingQuotas/BillingQuotas.csproj -c Release --no-restore
22+
- name: examples:core / FeatureFlags
23+
command: dotnet run --project Examples/Core/FeatureFlags/FeatureFlags.csproj -c Release --no-restore
24+
- name: examples:core / IamRoles
25+
command: dotnet run --project Examples/Core/IamRoles/IamRoles.csproj -c Release --no-restore
26+
- name: examples:core / WorkflowApprovals
27+
command: dotnet run --project Examples/Core/WorkflowApprovals/WorkflowApprovals.csproj -c Release --no-restore
28+
29+
steps:
30+
- uses: actions/checkout@v5
31+
32+
- uses: actions/setup-dotnet@v5
33+
with:
34+
dotnet-version: 10.0.x
35+
36+
- name: Restore
37+
run: dotnet restore ModularityKit.Mutator.slnx
38+
39+
- name: Run ${{ matrix.name }}
40+
run: ${{ matrix.command }}
41+
42+
examples-governance:
43+
name: ${{ matrix.name }}
44+
runs-on: ubuntu-latest
45+
46+
strategy:
47+
fail-fast: false
48+
matrix:
49+
include:
50+
- name: examples:governance / RequestLifecycle
51+
command: dotnet run --project Examples/Governance/RequestLifecycle/RequestLifecycle.csproj -c Release --no-restore
52+
- name: examples:governance / GovernedExecution
53+
command: dotnet run --project Examples/Governance/GovernedExecution/GovernedExecution.csproj -c Release --no-restore
54+
- name: examples:governance / DecisionTaxonomy
55+
command: dotnet run --project Examples/Governance/DecisionTaxonomy/DecisionTaxonomy.csproj -c Release --no-restore
56+
- name: examples:governance / ApprovalWorkflow
57+
command: dotnet run --project Examples/Governance/ApprovalWorkflow/ApprovalWorkflow.csproj -c Release --no-restore
58+
- name: examples:governance / VersionedResolution
59+
command: dotnet run --project Examples/Governance/VersionedResolution/VersionedResolution.csproj -c Release --no-restore
60+
- name: examples:governance / Queries
61+
command: dotnet run --project Examples/Governance/Queries/Queries.csproj -c Release --no-restore
62+
63+
steps:
64+
- uses: actions/checkout@v5
65+
66+
- uses: actions/setup-dotnet@v5
67+
with:
68+
dotnet-version: 10.0.x
69+
70+
- name: Restore
71+
run: dotnet restore ModularityKit.Mutator.slnx
72+
73+
- name: Run ${{ matrix.name }}
74+
run: ${{ matrix.command }}
75+
76+
examples-governance-redis:
77+
name: examples:governance / RedisQueries
78+
runs-on: ubuntu-latest
79+
80+
steps:
81+
- uses: actions/checkout@v5
82+
83+
- uses: actions/setup-dotnet@v5
84+
with:
85+
dotnet-version: 10.0.x
86+
87+
- name: Restore
88+
run: dotnet restore ModularityKit.Mutator.slnx
89+
90+
- name: Start Redis
91+
working-directory: Examples/Governance/RedisQueries
92+
run: docker compose up -d
93+
94+
- name: Run RedisQueries
95+
env:
96+
MODULARITYKIT_REDIS: localhost:6379
97+
run: dotnet run --project Examples/Governance/RedisQueries/RedisQueries.csproj -c Release --no-restore
98+
99+
- name: Stop Redis
100+
if: ${{ always() }}
101+
working-directory: Examples/Governance/RedisQueries
102+
run: docker compose down

.github/workflows/pr-check.yml

Lines changed: 0 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -58,95 +58,3 @@ jobs:
5858

5959
- name: Run ${{ matrix.name }}
6060
run: ${{ matrix.command }}
61-
62-
examples-core:
63-
name: ${{ matrix.name }}
64-
runs-on: ubuntu-latest
65-
66-
strategy:
67-
fail-fast: false
68-
matrix:
69-
include:
70-
- name: examples:core / BillingQuotas
71-
command: dotnet run --project Examples/Core/BillingQuotas/BillingQuotas.csproj -c Release --no-restore
72-
- name: examples:core / FeatureFlags
73-
command: dotnet run --project Examples/Core/FeatureFlags/FeatureFlags.csproj -c Release --no-restore
74-
- name: examples:core / IamRoles
75-
command: dotnet run --project Examples/Core/IamRoles/IamRoles.csproj -c Release --no-restore
76-
- name: examples:core / WorkflowApprovals
77-
command: dotnet run --project Examples/Core/WorkflowApprovals/WorkflowApprovals.csproj -c Release --no-restore
78-
79-
steps:
80-
- uses: actions/checkout@v5
81-
82-
- uses: actions/setup-dotnet@v5
83-
with:
84-
dotnet-version: 10.0.x
85-
86-
- name: Restore
87-
run: dotnet restore ModularityKit.Mutator.slnx
88-
89-
- name: Run ${{ matrix.name }}
90-
run: ${{ matrix.command }}
91-
92-
examples-governance:
93-
name: ${{ matrix.name }}
94-
runs-on: ubuntu-latest
95-
96-
strategy:
97-
fail-fast: false
98-
matrix:
99-
include:
100-
- name: examples:governance / RequestLifecycle
101-
command: dotnet run --project Examples/Governance/RequestLifecycle/RequestLifecycle.csproj -c Release --no-restore
102-
- name: examples:governance / GovernedExecution
103-
command: dotnet run --project Examples/Governance/GovernedExecution/GovernedExecution.csproj -c Release --no-restore
104-
- name: examples:governance / DecisionTaxonomy
105-
command: dotnet run --project Examples/Governance/DecisionTaxonomy/DecisionTaxonomy.csproj -c Release --no-restore
106-
- name: examples:governance / ApprovalWorkflow
107-
command: dotnet run --project Examples/Governance/ApprovalWorkflow/ApprovalWorkflow.csproj -c Release --no-restore
108-
- name: examples:governance / VersionedResolution
109-
command: dotnet run --project Examples/Governance/VersionedResolution/VersionedResolution.csproj -c Release --no-restore
110-
- name: examples:governance / Queries
111-
command: dotnet run --project Examples/Governance/Queries/Queries.csproj -c Release --no-restore
112-
113-
steps:
114-
- uses: actions/checkout@v5
115-
116-
- uses: actions/setup-dotnet@v5
117-
with:
118-
dotnet-version: 10.0.x
119-
120-
- name: Restore
121-
run: dotnet restore ModularityKit.Mutator.slnx
122-
123-
- name: Run ${{ matrix.name }}
124-
run: ${{ matrix.command }}
125-
126-
examples-governance-redis:
127-
name: examples:governance / RedisQueries
128-
runs-on: ubuntu-latest
129-
130-
steps:
131-
- uses: actions/checkout@v5
132-
133-
- uses: actions/setup-dotnet@v5
134-
with:
135-
dotnet-version: 10.0.x
136-
137-
- name: Restore
138-
run: dotnet restore ModularityKit.Mutator.slnx
139-
140-
- name: Start Redis
141-
working-directory: Examples/Governance/RedisQueries
142-
run: docker compose up -d
143-
144-
- name: Run RedisQueries
145-
env:
146-
MODULARITYKIT_REDIS: localhost:6379
147-
run: dotnet run --project Examples/Governance/RedisQueries/RedisQueries.csproj -c Release --no-restore
148-
149-
- name: Stop Redis
150-
if: ${{ always() }}
151-
working-directory: Examples/Governance/RedisQueries
152-
run: docker compose down

0 commit comments

Comments
 (0)