Update CI config (#1)

Reviewed-on: #1
Co-authored-by: 地震 <jishin@noreply.git.emunest.net>
Co-committed-by: 地震 <jishin@noreply.git.emunest.net>
This commit is contained in:
地震 2025-10-08 22:11:56 +00:00 committed by jishin
parent 9973baee49
commit 2fc733fbfa
3 changed files with 78 additions and 1 deletions

39
.woodpecker/main.yaml Normal file
View File

@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: 2025 Olivier 'reivilibre'
#
# SPDX-License-Identifier: GPL-3.0-or-later
when:
- event: push
branch: main
labels:
platform: linux/amd64
steps:
- name: build
image: rust:1.86.0
commands:
- cargo build --verbose
- name: test
image: rust:1.86.0
commands:
- cargo test --verbose
- name: fmt-check
image: rust:1.86.0
commands:
- rustup component add rustfmt
- cargo fmt -- --check
- name: clippy
image: rust:1.86.0
commands:
- rustup component add clippy
- cargo clippy -- -D warnings
- name: deny
image: rust:1.86.0
commands:
- cargo install cargo-deny
- cargo deny check

38
.woodpecker/pr.yaml Normal file
View File

@ -0,0 +1,38 @@
# SPDX-FileCopyrightText: 2025 Olivier 'reivilibre'
#
# SPDX-License-Identifier: GPL-3.0-or-later
when:
- event: pull_request
labels:
platform: linux/amd64
steps:
- name: build
image: rust:1.86.0
commands:
- cargo build --verbose
- name: test
image: rust:1.86.0
commands:
- cargo test --verbose
- name: fmt-check
image: rust:1.86.0
commands:
- rustup component add rustfmt
- cargo fmt -- --check
- name: clippy
image: rust:1.86.0
commands:
- rustup component add clippy
- cargo clippy -- -D warnings
- name: deny
image: rust:1.86.0
commands:
- cargo install cargo-deny
- cargo deny check

View File

@ -17,7 +17,7 @@ steps:
platforms: linux/amd64
# TODO: support more platforms such as these:
# platforms: linux/amd64,linux/arm/v6,linux/arm64/v8,linux/riscv64
repo: git.emunest.net/${CI_REPO_OWNER}/postgres_schema_documenter
repo: git.emunest.net/${CI_REPO_OWNER}/pgcrab
registry: git.emunest.net
tags: main
username: ${CI_REPO_OWNER}