woodpecker/.woodpecker/web.yml
Anbraten c1a1f7c10b
Use dag in ci config (#3010)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2023-12-28 16:39:14 +01:00

68 lines
1.2 KiB
YAML

when:
- event: [pull_request, tag]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- release/*
- renovate/*
variables:
- &node_image 'docker.io/node:21-alpine'
- &when
path:
# related config files
- '.woodpecker/web.yml'
# web source code
- 'web/**'
# api source code
- 'server/api/**'
event: [pull_request, tag, deployment]
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
formatcheck:
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
image: *node_image
directory: web/
commands:
- corepack enable
- pnpm test
when: *when