chore(deps): bump file-type from 21.3.1 to 21.3.2 #1179
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: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Enable Corepack | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@10.25.0 --activate | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Tests (coverage) | |
| run: pnpm test:coverage | |
| - name: Build | |
| run: pnpm build | |
| - name: Pack | |
| run: | | |
| set -euo pipefail | |
| rm -rf _pack | |
| mkdir -p _pack/root _pack/core | |
| pnpm pack --pack-destination _pack/root | |
| pnpm -C packages/core pack --pack-destination "$PWD/_pack/core" | |
| echo "==> root" | |
| ls -la _pack/root | |
| ROOT_TARBALL="$(find _pack/root -maxdepth 1 -type f \( -name '*.tgz' -o -name '*.tar.gz' \) | head -1)" | |
| if [ -z "${ROOT_TARBALL:-}" ]; then | |
| echo "No root pack artifact found in _pack/root" >&2 | |
| exit 1 | |
| fi | |
| tar -tf "$ROOT_TARBALL" | grep -E '^package/dist/cli\.js$' | |
| echo "==> core" | |
| ls -la _pack/core | |
| CORE_TARBALL="$(find _pack/core -maxdepth 1 -type f \( -name '*.tgz' -o -name '*.tar.gz' \) | head -1)" | |
| if [ -z "${CORE_TARBALL:-}" ]; then | |
| echo "No core pack artifact found in _pack/core" >&2 | |
| exit 1 | |
| fi | |
| tar -tf "$CORE_TARBALL" | grep -E '^package/dist/esm/index\.js$' | |
| tar -tf "$CORE_TARBALL" | grep -E '^package/dist/esm/content/index\.js$' | |
| tar -tf "$CORE_TARBALL" | grep -E '^package/dist/esm/prompts/index\.js$' | |
| extension-e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Enable Corepack | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@10.25.0 --activate | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright (Chromium) | |
| run: pnpm -C apps/chrome-extension exec playwright install --with-deps chromium | |
| - name: Build extension | |
| run: pnpm -C apps/chrome-extension build | |
| - name: Extension E2E (Chromium) | |
| run: | | |
| xvfb-run --auto-servernum --server-args='-screen 0 1280x720x24' \ | |
| pnpm -C apps/chrome-extension exec playwright test -c playwright.config.ts --project=chromium |