[Smart Accounts Kit] x402 seller guide #2287
Workflow file for this run
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: ci | |
| on: | |
| workflow_call: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| env: | |
| SEGMENT_ANALYTICS_KEY: ${{ secrets.SEGMENT_ANALYTICS_KEY }} | |
| LD_CLIENT_ID: ${{ secrets.LD_CLIENT_ID }} | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build | |
| uses: ConsenSys/github-actions/docs-build@main | |
| case: | |
| name: Check for case being inconsistent | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| folder: ['docs'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Case check action | |
| uses: ConsenSys/github-actions/docs-case-check@main | |
| with: | |
| DOC_DIR: ${{ matrix.folder }} | |
| SKIP_TEST: true | |
| lint: | |
| name: Lint Code Base | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Lint | |
| uses: ConsenSys/github-actions/docs-lint-all@main | |
| prettier: | |
| name: Prettier | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Changed files (Prettier) | |
| id: changed-files | |
| uses: tj-actions/changed-files@22103cc46bda19c2b464ffe86db46df6922fd323 # 47.0.5; pin matches docs-spelling-check | |
| with: | |
| separator: "\n" | |
| files: | | |
| **/*.md | |
| **/*.mdx | |
| **/*.ts | |
| **/*.tsx | |
| **/*.js | |
| **/*.jsx | |
| **/*.json | |
| **/*.css | |
| **/*.scss | |
| **/*.html | |
| **/*.yml | |
| **/*.yaml | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| env: | |
| NODE_ENV: development | |
| HUSKY: 0 | |
| - name: Check formatting | |
| if: steps.changed-files.outputs.any_changed == 'true' | |
| env: | |
| ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
| run: | | |
| set -euo pipefail | |
| files_to_check=() | |
| while IFS= read -r f || [ -n "$f" ]; do | |
| [ -z "$f" ] && continue | |
| if [ -f "$f" ]; then | |
| files_to_check+=("$f") | |
| fi | |
| done <<< "$ALL_CHANGED_FILES" | |
| if [ ${#files_to_check[@]} -eq 0 ]; then | |
| echo "No existing files to check (skipping)." | |
| exit 0 | |
| fi | |
| ./node_modules/.bin/prettier --check "${files_to_check[@]}" | |
| - name: No Prettier-scoped files changed | |
| if: steps.changed-files.outputs.any_changed != 'true' | |
| run: echo "No matching changed files; Prettier check skipped." | |
| spelling: | |
| name: Spelling | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| file-extensions: ['.md', '.mdx'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Vale | |
| uses: Consensys/github-actions/docs-spelling-check@main | |
| linkCheck: | |
| name: Link Checking | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Install dependencies | |
| run: npm ci | |
| env: | |
| NODE_ENV: development | |
| HUSKY: 0 | |
| - name: Generate Snaps API reference | |
| run: npm run docusaurus snaps:generate | |
| - name: LinkCheck | |
| uses: ConsenSys/github-actions/docs-link-check@main | |
| with: | |
| CONFIG_FILE: '.linkspector.yml' |