tickwerk/.woodpecker/checks.yaml

46 lines
898 B
YAML
Raw Permalink Normal View History

2023-07-10 00:00:23 +02:00
# SPDX-FileCopyrightText: 2023 Johannes Loher
#
# SPDX-License-Identifier: MIT
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json
variables:
2023-11-05 01:01:29 +01:00
- &node_image node:lts
2023-07-10 00:00:23 +02:00
when:
2023-11-05 01:01:29 +01:00
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
- event: pull_request
- event: tag
- event: manual
2023-07-10 00:00:23 +02:00
steps:
2023-11-05 01:01:29 +01:00
install:
image: *node_image
commands:
- yarn install --immutable
lint:
group: check
image: *node_image
commands:
- yarn lint
reuse:
group: check
image: fsfe/reuse:latest
commands:
- reuse lint
commitlint:
group: check
image: *node_image
commands:
- git fetch
- yarn run commitlint --from origin/${CI_COMMIT_TARGET_BRANCH}
when:
event: pull_request
build:
group: build
image: *node_image
commands:
- export APPDATA=$(pwd)
- yarn build