Skip to content

Commit 2cbfa2e

Browse files
committed
ci: run the public check example tests when the example changes
The evidence-tutorials job runs the page tests, and a change under the example path triggers it. Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
1 parent 1fa56fb commit 2cbfa2e

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/scripts/ci_changes.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@
308308
"docs/site/src/content/docs/tutorials/return-a-governed-value.mdx",
309309
"docs/site/src/content/docs/tutorials/verify-an-assertion-as-a-consumer.mdx",
310310
"products/evidence/examples/fhir/**",
311+
"products/evidence/examples/public-check/**",
311312
"products/evidence/examples/standalone/**",
312313
"products/evidence/examples/wallet-presentation/**",
313314
"products/evidence/fixtures/interoperability/inji-oid4vci/profile.json",

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,6 +2462,18 @@ jobs:
24622462
| tee "${RUNNER_TEMP}/evidence-source-recipes.log"
24632463
grep -q 'test result: ok\. 1 passed' "${RUNNER_TEMP}/evidence-source-recipes.log" || { echo "::error::expected exactly one passing test for curated_source_recipes_import_check_and_run_the_existing_evaluator"; exit 1; }
24642464
2465+
- name: Test the public certificate check example
2466+
shell: bash
2467+
env:
2468+
EVIDENCE_BIN: ${{ github.workspace }}/target/debug/evidence
2469+
run: |
2470+
set -euo pipefail
2471+
cargo test --locked -p registry-evidencectl --test public_check \
2472+
-- --ignored --exact the_packaged_example_answers_a_hit_and_an_identical_miss_and_audits_neither_subject \
2473+
| tee "${RUNNER_TEMP}/evidence-public-check.log"
2474+
grep -q 'test result: ok\. 1 passed' "${RUNNER_TEMP}/evidence-public-check.log" || { echo "::error::expected exactly one passing test for the_packaged_example_answers_a_hit_and_an_identical_miss_and_audits_neither_subject"; exit 1; }
2475+
node --test products/evidence/examples/public-check/page/check.test.mjs
2476+
24652477
- name: Test the composed wallet presentation journey
24662478
shell: bash
24672479
env:

0 commit comments

Comments
 (0)