ds4/.woodpecker/checks.yaml
Johannes Loher 91b222a14e
Some checks failed
ci/woodpecker/pr/checks Pipeline failed
chore: switch to bun as package manager and test runner
2023-07-22 03:04:04 +02:00

63 lines
1.2 KiB
YAML

# SPDX-FileCopyrightText: 2023 Johannes Loher
#
# SPDX-License-Identifier: MIT
$schema: https://raw.githubusercontent.com/woodpecker-ci/woodpecker/master/pipeline/schema/schema.json
variables:
- &bun_image oven/bun:latest
when:
- event: push
branch: ${CI_REPO_DEFAULT_BRANCH}
- event: pull_request
- event: tag
- event: manual
steps:
install:
image: *bun_image
commands:
- bun install --frozen-lockfile
lint:
group: check
image: *bun_image
commands:
- bun run lint
formatcheck:
group: check
image: *bun_image
commands:
- bun run format:check
typecheck:
group: check
image: *bun_image
commands:
- bun run typecheck
test:
group: check
image: *bun_image
commands:
- bun run test
reuse:
group: check
image: fsfe/reuse:latest
commands:
- reuse lint
commitlint:
group: check
image: *bun_image
commands:
- apt-get update
- apt-get install git -y
- git fetch origin ${CI_COMMIT_TARGET_BRANCH}
- bunx commitlint --from origin/${CI_COMMIT_TARGET_BRANCH}
when:
event: pull_request
build:
group: build
image: *bun_image
commands:
- export APPDATA=$(pwd)
- bun run build