use CG-DRAFT template #155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow for verifying bikeshed documents processing | |
name: Verify processing | |
on: | |
# only concerned with gating PRs to the main branch | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Upgrade pip | |
run: python3 -m pip install --upgrade pip | |
- name: Install Bikeshed | |
run: | | |
python3 -m pip install --upgrade bikeshed | |
bikeshed update | |
- name: Generate HTML | |
run: for bsdoc in ./*.bs ./**/*.bs; do bikeshed spec $bsdoc; done | |
- name: Generate SVG | |
run: for diagram in ./*.mmd primer/*.mmd; do docker run --rm -v "$PWD:/data" minlag/mermaid-cli -i /data/$diagram; done |