1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00
woodpecker/.woodpecker/web.yml
Patrick Schratz e3bcdbecfa
Add tests on renovate branches (#2798)
This sets the scene for a potential automerge of dev deps when tests
pass.

What is still missing is that somebody triggers the CI run (or a
whitelist for it).

---------

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
2023-11-11 21:35:48 +01:00

67 lines
1.1 KiB
YAML

version: 1
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:
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