58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
name: Web CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master, dev]
|
|
paths:
|
|
- "packages/web/**"
|
|
- "docs/**"
|
|
- ".github/workflows/web-ci.yml"
|
|
pull_request:
|
|
branches: [master, dev]
|
|
paths:
|
|
- "packages/web/**"
|
|
- "docs/**"
|
|
- ".github/workflows/web-ci.yml"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
format-lint-typecheck-build:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: packages/web
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: "1.3.12"
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Generate docs content from repo-root docs/
|
|
run: node ./scripts/generate-docs-content.mjs
|
|
|
|
- name: Format check
|
|
run: bun run format:check
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Type check
|
|
run: bun run type-check
|
|
|
|
- name: Next build
|
|
run: bun run build
|
|
env:
|
|
NEXT_TELEMETRY_DISABLED: "1"
|
|
|
|
- name: OpenNext (Cloudflare) build
|
|
run: bunx opennextjs-cloudflare build
|
|
env:
|
|
NEXT_TELEMETRY_DISABLED: "1"
|