Pin docs to merged data contract sources #11
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: Site checks | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out website | |
| uses: actions/checkout@v7 | |
| - name: Check out specification | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: mdbase-dev/mdbase-spec | |
| ref: 2c5e1bbc8736d71b95fcaea1b593dc2eeaec739b | |
| path: .sources/mdbase-spec | |
| - name: Check out Connect | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: mdbase-dev/mdbase-connect | |
| ref: c4fd2f801b12686e1fd1bd25de4a72cf9e14bc5c | |
| path: .sources/mdbase-connect | |
| - name: Check out Rust implementation | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: callumalpass/mdbase-rs | |
| ref: e9297f465f779d0bf6bb3a361abf16eaf80a6944 | |
| path: .sources/mdbase-rs | |
| - name: Check out TypeScript implementation | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: callumalpass/mdbase | |
| ref: 4f419e0f4454682d42e067749db1fd16d72d1eb9 | |
| path: .sources/mdbase | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install website dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build specification artifact | |
| working-directory: .sources/mdbase-spec/site | |
| run: npm ci && npm run build | |
| - name: Synchronize schemas and conformance claims | |
| run: pnpm sync:sources | |
| env: | |
| MDBASE_SPEC_DIR: .sources/mdbase-spec | |
| MDBASE_CONNECT_DIR: .sources/mdbase-connect | |
| MDBASE_RS_DIR: .sources/mdbase-rs | |
| MDBASE_TS_DIR: .sources/mdbase | |
| - name: Type and content checks | |
| run: pnpm check | |
| - name: Build website | |
| run: pnpm build | |
| - name: Import specification | |
| run: pnpm import:spec | |
| env: | |
| MDBASE_SPEC_DIR: .sources/mdbase-spec | |
| - name: Check local links | |
| run: pnpm check:links |