@metasession.co/devaudit-cli 0.3.19 → 0.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/sdlc/files/ci/feature-e2e.yml.template +44 -4
- package/sdlc/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metasession.co/devaudit-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"description": "DevAudit CLI — installs, syncs, and operates the Metasession SDLC across consumer projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@clack/prompts": "^0.8.2",
|
|
36
|
-
"@metasession.co/devaudit-plugin-sdk": "^0.3.
|
|
36
|
+
"@metasession.co/devaudit-plugin-sdk": "^0.3.20",
|
|
37
37
|
"ajv": "^8.20.0",
|
|
38
38
|
"commander": "^12.1.0",
|
|
39
39
|
"consola": "^3.2.3",
|
|
@@ -167,11 +167,47 @@ jobs:
|
|
|
167
167
|
if [ -d playwright-report ]; then
|
|
168
168
|
zip -qr playwright-report.zip playwright-report/ 2>/dev/null || true
|
|
169
169
|
fi
|
|
170
|
+
LINEAGE_FLAGS=(--test-execution "${{ github.run_id }}")
|
|
171
|
+
if [ "${{ steps.exec.outputs.execution_supported }}" = "true" ] && [ -n "${{ steps.exec.outputs.execution_record_id }}" ]; then
|
|
172
|
+
LINEAGE_FLAGS+=(--evidence-scope execution --test-execution-record-id "${{ steps.exec.outputs.execution_record_id }}")
|
|
173
|
+
fi
|
|
174
|
+
UPLOAD_FAILURES=0
|
|
175
|
+
|
|
176
|
+
if [ ! -f e2e-results.json ]; then
|
|
177
|
+
echo "::error::Feature E2E produced no e2e-results.json"
|
|
178
|
+
exit 1
|
|
179
|
+
fi
|
|
180
|
+
bash scripts/upload-evidence.sh \
|
|
181
|
+
{{PROJECT_SLUG}} "$REQ_ID" e2e_result e2e-results.json \
|
|
182
|
+
--category e2e_result --release "$REQ_ID" --create-release-if-missing \
|
|
183
|
+
--environment uat --sdlc-stage 2 \
|
|
184
|
+
--git-sha "${{ github.event.pull_request.head.sha }}" \
|
|
185
|
+
--ci-run-id "${{ github.run_id }}" --branch "${{ github.head_ref }}" \
|
|
186
|
+
"${LINEAGE_FLAGS[@]}" \
|
|
187
|
+
--meta-key "origin=feature" \
|
|
188
|
+
|| UPLOAD_FAILURES=$((UPLOAD_FAILURES + 1))
|
|
189
|
+
|
|
190
|
+
SHOT_DIR="compliance/evidence/${REQ_ID}/screenshots"
|
|
191
|
+
shopt -s nullglob
|
|
192
|
+
SHOTS=("${SHOT_DIR}"/*.png)
|
|
193
|
+
shopt -u nullglob
|
|
194
|
+
if [ "${#SHOTS[@]}" -eq 0 ]; then
|
|
195
|
+
echo "::error::No evidenceShot screenshots were captured for ${REQ_ID}."
|
|
196
|
+
exit 1
|
|
197
|
+
fi
|
|
198
|
+
for shot in "${SHOTS[@]}"; do
|
|
199
|
+
bash scripts/upload-evidence.sh \
|
|
200
|
+
{{PROJECT_SLUG}} "$REQ_ID" screenshot "$shot" \
|
|
201
|
+
--category screenshot --release "$REQ_ID" --create-release-if-missing \
|
|
202
|
+
--environment uat --sdlc-stage 2 \
|
|
203
|
+
--git-sha "${{ github.event.pull_request.head.sha }}" \
|
|
204
|
+
--ci-run-id "${{ github.run_id }}" --branch "${{ github.head_ref }}" \
|
|
205
|
+
"${LINEAGE_FLAGS[@]}" \
|
|
206
|
+
--meta-key "origin=feature" \
|
|
207
|
+
|| UPLOAD_FAILURES=$((UPLOAD_FAILURES + 1))
|
|
208
|
+
done
|
|
209
|
+
|
|
170
210
|
if [ -f playwright-report.zip ]; then
|
|
171
|
-
LINEAGE_FLAGS=(--test-execution "${{ github.run_id }}")
|
|
172
|
-
if [ "${{ steps.exec.outputs.execution_supported }}" = "true" ] && [ -n "${{ steps.exec.outputs.execution_record_id }}" ]; then
|
|
173
|
-
LINEAGE_FLAGS+=(--evidence-scope execution --test-execution-record-id "${{ steps.exec.outputs.execution_record_id }}")
|
|
174
|
-
fi
|
|
175
211
|
bash scripts/upload-evidence.sh \
|
|
176
212
|
{{PROJECT_SLUG}} "$REQ_ID" feature_e2e_report playwright-report.zip \
|
|
177
213
|
--category e2e_report --release "$REQ_ID" --create-release-if-missing \
|
|
@@ -182,6 +218,10 @@ jobs:
|
|
|
182
218
|
--meta-key "origin=feature" \
|
|
183
219
|
|| echo "::warning::feature E2E report upload failed"
|
|
184
220
|
fi
|
|
221
|
+
if [ "$UPLOAD_FAILURES" -gt 0 ]; then
|
|
222
|
+
echo "::error::${UPLOAD_FAILURES} feature E2E evidence upload(s) failed"
|
|
223
|
+
exit 1
|
|
224
|
+
fi
|
|
185
225
|
|
|
186
226
|
- name: Complete feature E2E execution
|
|
187
227
|
if: always()
|
package/sdlc/package.json
CHANGED