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:
parent
9973baee49
commit
2fc733fbfa
39
.woodpecker/main.yaml
Normal file
39
.woodpecker/main.yaml
Normal 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
38
.woodpecker/pr.yaml
Normal 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
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user