You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
991 B

# Drift canary for the résumé declared mirrors (praxis: Mirrors and Canaries).
# Fails if resume.json or public/resume.html is out of sync with resume.org.
name: resume-canary
on:
push:
paths:
- 'resume.org'
- 'resume.json'
- 'public/resume.html'
- 'resume.template.html'
- 'scripts/org-to-json.mjs'
- 'scripts/build-resume-html.mjs'
pull_request:
paths:
- 'resume.org'
- 'resume.json'
- 'public/resume.html'
- 'resume.template.html'
- 'scripts/org-to-json.mjs'
- 'scripts/build-resume-html.mjs'
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Verify resume.json matches resume.org
run: node scripts/org-to-json.mjs resume.org resume.json --check
- name: Verify public/resume.html matches resume.json
run: node scripts/build-resume-html.mjs --check