Compare commits

...

2 Commits

Author SHA1 Message Date
6e7b07ab28 Add the build status to the README
All checks were successful
ci/woodpecker/push/code_tests Pipeline was successful
ci/woodpecker/push/pre_commit_test Pipeline was successful
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-23 18:34:05 +01:00
2f17df8064 Add CI pipelines and pre-commit hooks
All checks were successful
ci/woodpecker/push/code_tests Pipeline was successful
ci/woodpecker/push/pre_commit_test Pipeline was successful
Now we have a very basic CI pipeline for running tests and executing
linter, as well as a pre-commit hook that is checking basic code related
stuff. The pre-commit hook is executed as a part of pipelines as well

Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-23 18:10:19 +01:00
6 changed files with 50 additions and 10 deletions

12
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell

View File

@@ -0,0 +1,13 @@
when:
event:
- push
steps:
- name: Clippy linter
image: rust:1.91.1-bullseye
commands:
- rustup component add clippy
- cargo clippy
- name: Unit tests
image: rust:1.91.1-bullseye
commands:
- cargo test

View File

@@ -0,0 +1,8 @@
when:
event:
- push
steps:
- name: Pre commit validation
image: codeberg.org/sp1thas/woodpecker-ci-pre-commit-runner
settings:
args: "--all-files"

7
Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "termix"
version = "0.1.0"

View File

@@ -1,2 +1,2 @@
# termix
[![status-badge](https://ci.badhouseplants.net/api/badges/19/status.svg)](https://ci.badhouseplants.net/repos/19)