Files
xread/.github/workflows/ci.yml
T
dependabot[bot]andgithub-actions[bot] a263f8e34d chore(deps): bump the github-actions group with 3 updates (#20)
Updates the requirements on [actions/checkout](https://github.com/actions/checkout), [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) and [docker/build-push-action](https://github.com/docker/build-push-action) to permit the latest version.

Updates `actions/checkout` from 4 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

Updates `docker/setup-buildx-action` from 3 to 4
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3...v4)

Updates `docker/build-push-action` to b66d8774c665b789105b440514f0c97e6f19b06f
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/commits/b66d8774c665b789105b440514f0c97e6f19b06f)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: docker/build-push-action
  dependency-version: b66d8774c665b789105b440514f0c97e6f19b06f
  dependency-type: direct:production
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-30 01:13:53 +08:00

77 lines
1.7 KiB
YAML

name: CI
on:
pull_request:
push:
branches:
- main
tags:
- v*
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify stand-alone build
runs-on: ubuntu-latest
timeout-minutes: 25
env:
CI: true
PUPPETEER_SKIP_DOWNLOAD: true
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint source files
run: npm run lint
- name: Run repository tests
run: npm run test:ci
- name: Build TypeScript output
run: npm run build
- name: Smoke-test stand-alone entrypoints
run: |
NODE_ENV=dry-run node ./build/stand-alone/crawl.js
NODE_ENV=dry-run node ./build/stand-alone/search.js
NODE_ENV=dry-run node ./build/stand-alone/serp.js
validate-container:
name: Validate container build
runs-on: ubuntu-latest
needs: verify
if: github.event_name == 'pull_request'
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Prepare licensed assets
run: node ./scripts/prepare-licensed-assets.cjs
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build container image without publishing
uses: docker/build-push-action@b66d8774c665b789105b440514f0c97e6f19b06f
with:
context: .
push: false