mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-19 00:11:16 +00:00
270de5f574
Since it does not work this is mainly a revert of #2127
63 lines
1.1 KiB
YAML
63 lines
1.1 KiB
YAML
when:
|
|
- event: [pull_request, tag]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
- release/*
|
|
|
|
variables:
|
|
- &node_image 'node:18-alpine'
|
|
- &when
|
|
path:
|
|
# related config files
|
|
- ".woodpecker/web.yml"
|
|
# web source code
|
|
- "web/**"
|
|
# api source code
|
|
- "server/api/**"
|
|
event: [pull_request, tag, deployment]
|
|
|
|
steps:
|
|
deps:
|
|
image: *node_image
|
|
directory: web/
|
|
commands:
|
|
- corepack enable
|
|
- pnpm install --frozen-lockfile
|
|
when: *when
|
|
|
|
lint:
|
|
group: test
|
|
image: *node_image
|
|
directory: web/
|
|
commands:
|
|
- corepack enable
|
|
- pnpm lint
|
|
when: *when
|
|
|
|
formatcheck:
|
|
group: test
|
|
image: *node_image
|
|
directory: web/
|
|
commands:
|
|
- corepack enable
|
|
- pnpm format:check
|
|
when: *when
|
|
|
|
typecheck:
|
|
group: test
|
|
image: *node_image
|
|
directory: web/
|
|
commands:
|
|
- corepack enable
|
|
- pnpm typecheck
|
|
when: *when
|
|
|
|
test:
|
|
group: test
|
|
image: *node_image
|
|
directory: web/
|
|
commands:
|
|
- corepack enable
|
|
- pnpm test
|
|
when: *when
|