Skip to content

Commit d865bf2

Browse files
authored
Update generate-models.yaml
1 parent 4f6acfc commit d865bf2

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

.github/workflows/generate-models.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,11 @@ on:
88

99
jobs:
1010
generate:
11-
1211
runs-on: ubuntu-latest
1312

1413
strategy:
1514
matrix:
16-
language:
17-
- name: '.NET'
18-
repo: 'OpenActive.NET'
19-
- name: 'PHP'
20-
repo: 'models-php'
21-
- name: 'Ruby'
22-
repo: 'models-ruby'
23-
- name: 'TypeScript'
24-
repo: 'models-ts'
15+
language: ['.NET', 'PHP', 'Ruby', 'TypeScript']
2516

2617
steps:
2718
- name: Checkout
@@ -41,11 +32,15 @@ jobs:
4132
run: npm update @openactive/data-models
4233
working-directory: models-lib
4334

44-
- name: Generate ${{ matrix.language.name }} models
45-
run: npm start -- generate ${{ matrix.language.name }} --destination ../output/
35+
- name: Generate ${{ matrix.language }} models
36+
run: npm start -- generate ${{ matrix.language }} --destination ../output/
4637
working-directory: models-lib
4738

48-
- name: Test model build
49-
uses: openactive/${{ matrix.language.repo }}/.github/workflows/create-data-model-pr.yaml@ci/testable-build
50-
with:
51-
models-lib_ref: ${{ github.ref }}
39+
test:
40+
strategy:
41+
matrix:
42+
repos: ['OpenActive.NET', 'models-php', 'models-ruby', 'models-ts']
43+
44+
uses: openactive/${{ matrix.repo }}/.github/workflows/create-data-model-pr.yaml@ci/testable-build
45+
with:
46+
models-lib_ref: ${{ github.ref }}

0 commit comments

Comments
 (0)