# 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