17 lines
460 B
YAML
17 lines
460 B
YAML
# PR pipeline: lint, test, and test build on the branch.
|
|
# Runs when a pull request is opened or updated.
|
|
# Does not build Docker image or deploy.
|
|
when:
|
|
event: pull_request
|
|
|
|
steps:
|
|
- name: lint-and-build
|
|
image: node:20-alpine
|
|
commands:
|
|
- corepack enable && corepack prepare pnpm@10.28.2 --activate
|
|
- pnpm install --frozen-lockfile || pnpm install
|
|
- pnpm run lint
|
|
- pnpm run lint:css
|
|
- pnpm run build
|
|
- pnpm test
|