Initial commit
This commit is contained in:
68
.woodpecker/ci.yml
Normal file
68
.woodpecker/ci.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
# CI: runs on every push. Install, lint, check, test, build (dev), e2e.
|
||||
when:
|
||||
- event: pull_request
|
||||
- event: push
|
||||
branch: main
|
||||
- event: tag
|
||||
- event: manual
|
||||
|
||||
steps:
|
||||
install:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable
|
||||
- corepack prepare pnpm@latest --activate
|
||||
- pnpm install --frozen-lockfile
|
||||
|
||||
prettier:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run format:check
|
||||
depends_on:
|
||||
- install
|
||||
|
||||
lint:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run lint
|
||||
depends_on:
|
||||
- prettier
|
||||
|
||||
test:
|
||||
image: node:22-bookworm-slim
|
||||
commands:
|
||||
- corepack enable && corepack prepare pnpm@latest --activate
|
||||
- pnpm run test
|
||||
depends_on:
|
||||
- lint
|
||||
|
||||
# build:
|
||||
# image: node:22-bookworm-slim
|
||||
# commands:
|
||||
# - corepack enable && corepack prepare pnpm@latest --activate
|
||||
# - pnpm run build
|
||||
# depends_on:
|
||||
# - test
|
||||
|
||||
# build-full:
|
||||
# image: node:22-bookworm-slim
|
||||
# commands:
|
||||
# - apt-get update
|
||||
# - apt-get install -y --no-install-recommends ca-certificates libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 libnss3 libxcomposite1 libxdamage1 libxfixes3 libxkbcommon0 libxrandr2
|
||||
# - rm -rf /var/lib/apt/lists/*
|
||||
# - corepack enable && corepack prepare pnpm@latest --activate
|
||||
# - pnpm run critical-css:install
|
||||
# - pnpm run build:full
|
||||
# depends_on:
|
||||
# - build
|
||||
|
||||
# e2e:
|
||||
# image: node:22-bookworm-slim
|
||||
# commands:
|
||||
# - corepack enable && corepack prepare pnpm@latest --activate
|
||||
# - pnpm exec playwright install chromium --with-deps
|
||||
# - pnpm run test:e2e
|
||||
# depends_on:
|
||||
# - build
|
||||
Reference in New Issue
Block a user