File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 pull_request : { branches: [ main ] }
55
66jobs :
7- python :
8- runs-on : ubuntu-latest
9- defaults : { run: { working-directory: signer } }
10- steps :
11- - uses : actions/checkout@v4
12- - uses : actions/setup-python@v5
13- with : { python-version: '3.11' }
14- - run : pip install --upgrade pip ruff bandit
15- - run : ruff check . || true
16- - run : bandit -q -r . || true
17-
187 web :
198 runs-on : ubuntu-latest
209 steps :
2110 - uses : actions/checkout@v4
22- - name : Verify site files exist
11+ - name : Sanity check site files
12+ shell : bash
2313 run : |
24- test -f site/demo-embed.html
25- test -f site/verify.html
26- echo "Site sanity OK"
14+ set -e
15+ # Accept either root or site/ layout to be robust
16+ if [ -f demo-embed.html ]; then
17+ echo "Found root-level pages."
18+ test -f demo-embed.html
19+ test -f verify.html
20+ elif [ -f site/demo-embed.html ]; then
21+ echo "Found site/ pages."
22+ test -f site/demo-embed.html
23+ test -f site/verify.html
24+ else
25+ echo "Could not find demo-embed.html or verify.html" >&2
26+ exit 1
27+ fi
28+ echo "Site sanity OK."
You can’t perform that action at this time.
0 commit comments