9
9
jobs :
10
10
generate-and-test-client :
11
11
runs-on : ubuntu-latest
12
- name : Generate and test client
12
+ name : Generate and test client (${{ inputs.name }})
13
13
container :
14
14
image : ghcr.io/wyrihaximusnet/php:8.2-nts-alpine-dev-root
15
15
steps :
18
18
fetch-depth : ' 0'
19
19
persist-credentials : ' false'
20
20
- 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
21
26
- run : make generate-example-client-${{ inputs.name }}
22
27
- name : Tar example files
23
28
run : tar -czf example.tar ./example
27
32
name : example-${{ inputs.name }}-client
28
33
path : ./example.tar
29
34
supported-versions-matrix :
30
- name : Supported Versions Matrix
35
+ name : Supported Versions Matrix (${{ inputs.name }})
31
36
runs-on : ubuntu-latest
32
37
outputs :
33
38
version : ${{ steps.supported-versions-matrix.outputs.version }}
@@ -39,14 +44,16 @@ jobs:
39
44
with :
40
45
upcomingReleases : true
41
46
supported-checks-matrix :
42
- name : Supported Checks Matrix
47
+ name : Supported Checks Matrix (${{ inputs.name }})
43
48
runs-on : ubuntu-latest
44
49
needs :
45
50
- generate-and-test-client
46
51
outputs :
47
52
check : ${{ steps.supported-checks-matrix.outputs.check }}
48
53
steps :
49
54
- uses : actions/checkout@v3
55
+ - run : |
56
+ mkdir -p example/generated-${{ inputs.name }}
50
57
- name : Download Generated Client
51
58
uses : actions/download-artifact@v3
52
59
with :
61
68
printf "Checks found: %s\r\n" $(make task-list-ci)
62
69
printf "::set-output name=check::%s" $(make task-list-ci)
63
70
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 }})
65
72
strategy :
66
73
fail-fast : false
67
74
matrix :
80
87
with :
81
88
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
82
89
- 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 }}
83
92
- name : Download Generated Client
84
93
uses : actions/download-artifact@v3
85
94
with :
0 commit comments