Skip to content

Commit 39ccb3d

Browse files
committed
Add helper causal receipts validation workflow on current main
1 parent bfd902c commit 39ccb3d

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Helper Causal Receipts
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'schemas/helper-causal-receipts.schema.json'
7+
- 'tests/fixtures/helper-receipts/**'
8+
- 'tools/check_helper_receipts.py'
9+
- '.github/workflows/helper-causal-receipts.yml'
10+
push:
11+
branches:
12+
- main
13+
paths:
14+
- 'schemas/helper-causal-receipts.schema.json'
15+
- 'tests/fixtures/helper-receipts/**'
16+
- 'tools/check_helper_receipts.py'
17+
- '.github/workflows/helper-causal-receipts.yml'
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
validate:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Validate passing fixtures
29+
run: |
30+
python3 tools/check_helper_receipts.py \
31+
tests/fixtures/helper-receipts/preview_local_only_pass.json \
32+
tests/fixtures/helper-receipts/web_thumbnail_pass_clipboard_denied.json
33+
- name: Validate local-only negative fixture fails
34+
run: |
35+
if python3 tools/check_helper_receipts.py tests/fixtures/helper-receipts/preview_local_only_fail_pasteboard_allowed.json; then
36+
echo 'negative fixture unexpectedly passed'
37+
exit 1
38+
fi
39+
- name: Validate missing-intent negative fixture fails
40+
run: |
41+
if python3 tools/check_helper_receipts.py tests/fixtures/helper-receipts/helper_spawn_missing_root_intent_fail.json; then
42+
echo 'missing-intent fixture unexpectedly passed'
43+
exit 1
44+
fi

0 commit comments

Comments
 (0)