Skip to content

Commit 3aee451

Browse files
authored
Merge pull request #202 from php-api-clients/get-ci-as-green-as-possible-in-an-hour
Get CI as green as possible in an hour
2 parents b085cf3 + 15207d6 commit 3aee451

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.github/workflows/generate-clients.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on:
88
pull_request:
99
jobs:
1010
generate-and-test-client:
11-
name: Continuous Integration
11+
name: Continuous Integration (${{ matrix.client }})
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
client: ["miele", "one"]
15+
client: ["miele", "one", "subsplit"]
1616
uses: ./.github/workflows/test-client.yaml
1717
with:
1818
name: ${{ matrix.client }}

.github/workflows/test-client.yaml

+13-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
generate-and-test-client:
1111
runs-on: ubuntu-latest
12-
name: Generate and test client
12+
name: Generate and test client (${{ inputs.name }})
1313
container:
1414
image: ghcr.io/wyrihaximusnet/php:8.2-nts-alpine-dev-root
1515
steps:
@@ -18,6 +18,11 @@ jobs:
1818
fetch-depth: '0'
1919
persist-credentials: 'false'
2020
- uses: "ramsey/composer-install@v2"
21+
- run: |
22+
mkdir -p example/generated-${{ inputs.name }}
23+
- run: curl -o example/api.github.com.yaml https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/api.github.com.yaml
24+
- run: curl -o example/patch-broken-spec-files.php https://raw.githubusercontent.com/php-api-clients/github-root/main/utils/patch-broken-spec-files.php
25+
- run: php example/patch-broken-spec-files.php example/api.github.com.yaml
2126
- run: make generate-example-client-${{ inputs.name }}
2227
- name: Tar example files
2328
run: tar -czf example.tar ./example
@@ -27,7 +32,7 @@ jobs:
2732
name: example-${{ inputs.name }}-client
2833
path: ./example.tar
2934
supported-versions-matrix:
30-
name: Supported Versions Matrix
35+
name: Supported Versions Matrix (${{ inputs.name }})
3136
runs-on: ubuntu-latest
3237
outputs:
3338
version: ${{ steps.supported-versions-matrix.outputs.version }}
@@ -39,14 +44,16 @@ jobs:
3944
with:
4045
upcomingReleases: true
4146
supported-checks-matrix:
42-
name: Supported Checks Matrix
47+
name: Supported Checks Matrix (${{ inputs.name }})
4348
runs-on: ubuntu-latest
4449
needs:
4550
- generate-and-test-client
4651
outputs:
4752
check: ${{ steps.supported-checks-matrix.outputs.check }}
4853
steps:
4954
- uses: actions/checkout@v3
55+
- run: |
56+
mkdir -p example/generated-${{ inputs.name }}
5057
- name: Download Generated Client
5158
uses: actions/download-artifact@v3
5259
with:
@@ -61,7 +68,7 @@ jobs:
6168
printf "Checks found: %s\r\n" $(make task-list-ci)
6269
printf "::set-output name=check::%s" $(make task-list-ci)
6370
qa:
64-
name: Run ${{ matrix.check }} on PHP ${{ matrix.php }} with ${{ matrix.composer }} dependency preference
71+
name: Run ${{ matrix.check }} on PHP ${{ matrix.php }} with ${{ matrix.composer }} dependency preference (${{ inputs.name }})
6572
strategy:
6673
fail-fast: false
6774
matrix:
@@ -80,6 +87,8 @@ jobs:
8087
with:
8188
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags
8289
- run: git config --global --add safe.directory $GITHUB_WORKSPACE # Do this ourself because `actions/checkout@v3 doesn't succeed in doing this
90+
- run: |
91+
mkdir -p example/generated-${{ inputs.name }}
8392
- name: Download Generated Client
8493
uses: actions/download-artifact@v3
8594
with:

0 commit comments

Comments
 (0)