Repository navigation
Check o1Labs documentation links and GraphQL endpoints #24
This file contains hidden or 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
| name: Check o1Labs documentation links and GraphQL endpoints | |
| # Scheduled rather than per-PR on purpose: these URLs are owned by | |
| # o1-labs/o1js-documentation-site, so they break through upstream edits | |
| # rather than through anything in a Mina docs pull request. Blocking | |
| # unrelated PRs on someone else's rename helps nobody. | |
| # | |
| # Daily, because the job is around sixty HEAD requests and a link broken | |
| # upstream should surface within a day rather than within a week. | |
| on: | |
| schedule: | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: {} | |
| jobs: | |
| check-o1labs-links: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| - name: Check outbound o1Labs links and anchors | |
| run: npm run check-o1labs-links | |
| # The endpoints a reader types into a config file or Mina.Network(...). | |
| # Nothing in the build notices when one stops answering: the page still | |
| # renders and the reader is left with a client that hangs. | |
| check-graphql-endpoints: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| - name: Check the GraphQL endpoints the docs recommend | |
| run: node scripts/check-graphql-endpoints.js |