feat: migrate to woodpecker ci
ci/woodpecker/pr/pre-commit Pipeline was successful

- update build->test, change to use uvx precommit
- update pre-commit with additional checks
- remove gitea actions job
This commit is contained in:
2026-03-09 01:22:37 +11:00
parent 1b76f03ba3
commit b2e99ae7e4
4 changed files with 29 additions and 35 deletions
-24
View File
@@ -1,24 +0,0 @@
name: Build
on:
pull_request:
jobs:
build:
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8:latest
options: --privileged
steps:
- name: Set up environment
run: |
dnf module enable -y nodejs:20
dnf install -y make bash git nodejs python3.11
- name: Checkout code
uses: actions/checkout@v3
- name: Run pre-commit
run: |
make build
+19 -3
View File
@@ -1,13 +1,29 @@
repos: repos:
- repo: 'https://github.com/adrienverge/yamllint' # General file checks
rev: v1.32.0 - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks: hooks:
- id: 'yamllint' - id: check-added-large-files
args: ['--maxkb=500']
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
args: [--allow-multiple-documents]
- id: end-of-file-fixer
- id: forbid-new-submodules
- id: trailing-whitespace
# YAML linting
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
args: args:
[ [
"-d {extends: relaxed, rules: {line-length: disable}, ignore: chart}", "-d {extends: relaxed, rules: {line-length: disable}, ignore: chart}",
"-s", "-s",
] ]
- repo: https://github.com/jorisroovers/gitlint - repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1 rev: v0.19.1
hooks: hooks:
+8
View File
@@ -0,0 +1,8 @@
when:
- event: pull_request
steps:
- name: pre-commit
image: git.unkin.net/unkin/almalinux9-base:20260308
commands:
- make test
+2 -8
View File
@@ -1,9 +1,3 @@
# run pre-commit # run pre-commit
build: test:
python3.11 -m venv venv uvx pre-commit run --all-files
venv/bin/pip install pip --upgrade
venv/bin/pip install pre-commit
venv/bin/pre-commit run --all-files
clean:
rm -rf venv