99jobs :
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 :
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
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 :
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 :
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