Merge pull request #4 from Decodo/scrape-url-shortcut #28
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: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # TODO(published-sdk): use a single checkout at repo root (drop path: cli). | |
| - name: Checkout CLI | |
| uses: actions/checkout@v4 | |
| with: | |
| path: cli | |
| # TODO(published-sdk): remove — sdk-ts is built and fetched from npm, not sibling checkout. | |
| - name: Checkout sdk-ts | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: Decodo/sdk-ts | |
| path: sdk-ts | |
| ref: main | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| # TODO(published-sdk): drop package_json_file when checkout is at repo root. | |
| package_json_file: cli/package.json | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| # TODO(published-sdk): revert to pnpm-lock.yaml (no cli/ prefix). | |
| cache-dependency-path: cli/pnpm-lock.yaml | |
| # TODO(published-sdk): remove — published @decodo/sdk-ts ships prebuilt artifacts. | |
| - name: Build sdk-ts | |
| # codegen needs inputs/decodo.ir.json (gitignored); compile committed src/generated instead. | |
| run: pnpm install --frozen-lockfile && pnpm run build:esm && pnpm run build:cjs | |
| working-directory: sdk-ts | |
| # TODO(published-sdk): drop working-directory: cli on all steps below. | |
| - name: Install CLI dependencies | |
| run: pnpm install --frozen-lockfile | |
| working-directory: cli | |
| - name: Lint | |
| run: pnpm lint | |
| working-directory: cli | |
| - name: Typecheck | |
| run: pnpm typecheck | |
| working-directory: cli | |
| - name: Build | |
| run: pnpm build | |
| working-directory: cli | |
| - name: Test | |
| run: pnpm test | |
| working-directory: cli |