Compare commits

..

4 Commits

Author SHA1 Message Date
0a1d68cb2d WIP: Still nothing meaningful
Some checks failed
ci/woodpecker/push/code_tests Pipeline was successful
ci/woodpecker/push/pre_commit_test Pipeline failed
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-23 18:36:22 +01:00
285c4a10fd WIP: Preparing the codebase, nothing important
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
2025-11-23 18:36:20 +01:00
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 45 additions and 12 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"

4
Cargo.lock generated
View File

@@ -162,9 +162,9 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
[[package]] [[package]]
name = "syn" name = "syn"
version = "2.0.110" version = "2.0.111"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a99801b5bd34ede4cf3fc688c5919368fea4e4814a4664359503e6015b280aea" checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
dependencies = [ dependencies = [
"proc-macro2", "proc-macro2",
"quote", "quote",

View File

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