Update Connect downloads to v0.1.0-beta.104 #54
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: Read pinned source identities | |
| id: sources | |
| run: | | |
| echo "spec_repository=$(jq -r '.specification.repository' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "spec_ref=$(jq -r '.specification.ref' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "connect_repository=$(jq -r '.connect.repository' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "connect_ref=$(jq -r '.connect.ref' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "contracts_repository=$(jq -r '.contracts.repository' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "contracts_ref=$(jq -r '.contracts.ref' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "rust_repository=$(jq -r '.implementations[] | select(.id == "rust") | .repository' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "rust_ref=$(jq -r '.implementations[] | select(.id == "rust") | .ref' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "typescript_repository=$(jq -r '.implementations[] | select(.id == "typescript") | .repository' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| echo "typescript_ref=$(jq -r '.implementations[] | select(.id == "typescript") | .ref' site-sources.json)" >> "$GITHUB_OUTPUT" | |
| - name: Check out specification | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: ${{ steps.sources.outputs.spec_repository }} | |
| ref: ${{ steps.sources.outputs.spec_ref }} | |
| path: .sources/mdbase-spec | |
| - name: Check out Connect | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: ${{ steps.sources.outputs.connect_repository }} | |
| ref: ${{ steps.sources.outputs.connect_ref }} | |
| path: .sources/mdbase-connect | |
| - name: Check out contracts | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: ${{ steps.sources.outputs.contracts_repository }} | |
| ref: ${{ steps.sources.outputs.contracts_ref }} | |
| path: .sources/mdbase-contracts | |
| - name: Check out Rust implementation | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: ${{ steps.sources.outputs.rust_repository }} | |
| ref: ${{ steps.sources.outputs.rust_ref }} | |
| path: .sources/mdbase-rs | |
| - name: Check out TypeScript implementation | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: ${{ steps.sources.outputs.typescript_repository }} | |
| ref: ${{ steps.sources.outputs.typescript_ref }} | |
| path: .sources/mdbase | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install cosign | |
| uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2 | |
| - name: Install website dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build contract catalog | |
| working-directory: .sources/mdbase-contracts | |
| run: npm ci && npm run build | |
| - name: Build specification artifact | |
| working-directory: .sources/mdbase-spec/site | |
| run: npm ci && npm run build | |
| - name: Synchronize schemas, contracts, and conformance claims | |
| run: pnpm sync:sources | |
| env: | |
| MDBASE_SPEC_DIR: .sources/mdbase-spec | |
| MDBASE_CONNECT_DIR: .sources/mdbase-connect | |
| MDBASE_CONTRACTS_DIR: .sources/mdbase-contracts | |
| MDBASE_RS_DIR: .sources/mdbase-rs | |
| MDBASE_TS_DIR: .sources/mdbase | |
| - name: Reject stale Connect release updates | |
| if: github.event_name == 'pull_request' | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| run: | | |
| git fetch --no-tags --depth=1 origin "$BASE_SHA" | |
| pnpm check:release-order "$BASE_SHA" | |
| - name: Type and content checks | |
| run: pnpm test:spec && pnpm test:home && pnpm test:deploy:dev && pnpm test:release-update && pnpm check:release && pnpm check | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - 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 |