1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00
woodpecker/.woodpecker/web.yaml

67 lines
1.2 KiB
YAML
Raw Permalink Normal View History

when:
- event: pull_request
- event: push
branch:
- release/*
variables:
- &node_image 'docker.io/node:23-alpine'
- &when
path:
# related config files
- '.woodpecker/web.yaml'
# web source code
2023-10-24 14:42:05 +02:00
- 'web/**'
# api source code
2023-10-24 14:42:05 +02:00
- 'server/api/**'
steps:
install-dependencies:
image: *node_image
directory: web/
commands:
- corepack enable
- pnpm install --frozen-lockfile
when: *when
lint:
depends_on:
- install-dependencies
image: *node_image
directory: web/
commands:
- corepack enable
- pnpm lint
when: *when
2024-05-24 22:35:04 +02:00
format-check:
depends_on:
- install-dependencies
image: *node_image
directory: web/
commands:
- corepack enable
- pnpm format:check
when: *when
typecheck:
depends_on:
- install-dependencies
image: *node_image
directory: web/
commands:
- corepack enable
- pnpm typecheck
when: *when
test:
depends_on:
- install-dependencies
- format-check # wait for it else test artifacts are falsely detected as wrong
image: *node_image
directory: web/
commands:
- corepack enable
- pnpm test
when: *when