-
-
Notifications
You must be signed in to change notification settings - Fork 56
188 lines (165 loc) · 5.81 KB
/
conformance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: Conformance Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '47 11 * * 1'
workflow_dispatch:
jobs:
build:
uses: panva/.github/.github/workflows/build-conformance-suite.yml@main
run:
runs-on: ubuntu-latest
needs:
- build
continue-on-error: ${{ startsWith(matrix.setup.plan, 'fapi2') }}
strategy:
fail-fast: false
matrix:
setup:
# Core 1.0 Basic
- plan: oidcc-client-basic-certification-test-plan
# client_secret_basic
- variant:
client_auth_type: client_secret_basic
plan: oidcc-client-test-plan
# client_secret_post
- variant:
client_auth_type: client_secret_post
plan: oidcc-client-test-plan
# request_object
- variant:
request_type: request_object
plan: oidcc-client-test-plan
# private_key_jwt
- variant:
client_auth_type: private_key_jwt
plan: oidcc-client-test-plan
# none
- variant:
client_auth_type: none
plan: oidcc-client-test-plan
# RS256
- algorithm: RS256
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# RS384
- algorithm: RS384
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# RS512
- algorithm: RS512
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# PS256
- algorithm: PS256
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# PS384
- algorithm: PS384
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# PS512
- algorithm: PS512
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# ES256
- algorithm: ES256
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# TODO: https://gitlab.com/openid/conformance-suite/-/issues/1129
# # ES384
# - algorithm: ES384
# plan: oidcc-client-test-plan
# variant:
# request_type: request_object
# client_auth_type: private_key_jwt
# # ES512
# - algorithm: ES512
# plan: oidcc-client-test-plan
# variant:
# request_type: request_object
# client_auth_type: private_key_jwt
# EdDSA
- algorithm: EdDSA
plan: oidcc-client-test-plan
variant:
request_type: request_object
client_auth_type: private_key_jwt
# FAPI 2.0 Security Profile ID2 - OpenID Connect
- plan: fapi2-security-profile-id2-client-test-plan
# FAPI 2.0 Security Profile ID2 - OAuth 2.0
- plan: fapi2-security-profile-id2-client-test-plan
variant:
fapi_client_type: 'plain_oauth'
# FAPI 2.0 Message Signing ID1 - OpenID Connect
- plan: fapi2-message-signing-id1-client-test-plan
# FAPI 2.0 Message Signing ID1 - OAuth 2.0
- plan: fapi2-message-signing-id1-client-test-plan
variant:
fapi_client_type: 'plain_oauth'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load Cached Conformance Suite Build
uses: actions/cache@v3
id: cache
with:
path: ./conformance-suite
key: ${{ needs.build.outputs.cache-key }}
fail-on-cache-miss: true
- name: Run Conformance Suite
working-directory: ./conformance-suite
run: |
docker-compose -f docker-compose-dev.yml up -d
while ! curl -skfail https://localhost.emobix.co.uk:8443/api/runner/available >/dev/null; do sleep 2; done
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/iron # 20
cache: 'npm'
- run: npm clean-install
- name: npm run conformance
run: |
set -o pipefail
npm run conformance | tee capture.txt
env:
NODE_TLS_REJECT_UNAUTHORIZED: 0
SUITE_BASE_URL: https://localhost.emobix.co.uk:8443
PLAN_NAME: ${{ matrix.setup.plan }}
VARIANT: ${{ toJSON(matrix.setup.variant) }}
JWS_ALGORITHM: ${{ matrix.setup.algorithm }}
- run: node ./conformance/.parse-logs.mjs capture.txt
- run: rm capture.txt
- name: Upload test artifacts
id: artifact-upload-step
uses: actions/upload-artifact@v4
with:
path: |
*.zip
*.txt
name: conformance results idx(${{ strategy.job-index }})
if-no-files-found: error
if: ${{ always() }}
- if: ${{ success() }}
run: |
echo "### [:tada:](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }})" >> $GITHUB_STEP_SUMMARY
- if: ${{ failure() }}
run: |
echo "### [:exclamation:](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/${{ steps.artifact-upload-step.outputs.artifact-id }})" >> $GITHUB_STEP_SUMMARY