diff --git a/.woodpecker/bolt-validate.yaml b/.woodpecker/bolt-validate.yaml new file mode 100644 index 0000000..f1ae298 --- /dev/null +++ b/.woodpecker/bolt-validate.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: bolt-validate + image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 + commands: + - uvx pre-commit run --all-files --config ci/bolt-validate.yaml diff --git a/.woodpecker/epp-validate.yaml b/.woodpecker/epp-validate.yaml new file mode 100644 index 0000000..cae6250 --- /dev/null +++ b/.woodpecker/epp-validate.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: epp-validate + image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 + commands: + - uvx pre-commit run --all-files --config ci/epp-validate.yaml diff --git a/.woodpecker/erb-validate.yaml b/.woodpecker/erb-validate.yaml new file mode 100644 index 0000000..151166d --- /dev/null +++ b/.woodpecker/erb-validate.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: erb-validate + image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 + commands: + - uvx pre-commit run --all-files --config ci/erb-validate.yaml diff --git a/.woodpecker/pre-commit.yaml b/.woodpecker/pre-commit.yaml deleted file mode 100644 index ec27313..0000000 --- a/.woodpecker/pre-commit.yaml +++ /dev/null @@ -1,10 +0,0 @@ -when: - - event: pull_request - -steps: - - name: pre-commit - image: git.unkin.net/unkin/almalinux9-base:latest - commands: - - dnf groupinstall -y "Development Tools" -y - - dnf install uv rubygems ruby-devel gcc make redhat-rpm-config glibc-headers glibc-devel libffi libffi-devel -y - - uvx pre-commit run --all-files diff --git a/.woodpecker/puppet-lint.yaml b/.woodpecker/puppet-lint.yaml new file mode 100644 index 0000000..79529d5 --- /dev/null +++ b/.woodpecker/puppet-lint.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: puppet-lint + image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 + commands: + - uvx pre-commit run --all-files --config ci/puppet-lint.yaml diff --git a/.woodpecker/puppet-validate.yaml b/.woodpecker/puppet-validate.yaml new file mode 100644 index 0000000..804217b --- /dev/null +++ b/.woodpecker/puppet-validate.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: puppet-validate + image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 + commands: + - uvx pre-commit run --all-files --config ci/puppet-validate.yaml diff --git a/.woodpecker/ruby-check.yaml b/.woodpecker/ruby-check.yaml new file mode 100644 index 0000000..6bb784b --- /dev/null +++ b/.woodpecker/ruby-check.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: ruby-check + image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 + commands: + - uvx pre-commit run --all-files --config ci/ruby-check.yaml diff --git a/.woodpecker/ruby-validate.yaml b/.woodpecker/ruby-validate.yaml new file mode 100644 index 0000000..323d20f --- /dev/null +++ b/.woodpecker/ruby-validate.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: ruby-validate + image: git.unkin.net/unkin/almalinux9-puppet-pr-validator:20260317 + commands: + - uvx pre-commit run --all-files --config ci/ruby-validate.yaml diff --git a/.woodpecker/yamllint.yaml b/.woodpecker/yamllint.yaml new file mode 100644 index 0000000..8ecd4a3 --- /dev/null +++ b/.woodpecker/yamllint.yaml @@ -0,0 +1,8 @@ +when: + - event: pull_request + +steps: + - name: yamllint + image: git.unkin.net/unkin/almalinux9-base:20260317 + commands: + - uvx pre-commit run --all-files --config ci/yamllint.yaml diff --git a/ci/bolt-validate.yaml b/ci/bolt-validate.yaml new file mode 100644 index 0000000..d42619d --- /dev/null +++ b/ci/bolt-validate.yaml @@ -0,0 +1,5 @@ +repos: + - repo: 'https://github.com/chriskuehl/puppet-pre-commit-hooks.git' + rev: v2.2.0 + hooks: + - id: bolt-validate diff --git a/ci/epp-validate.yaml b/ci/epp-validate.yaml new file mode 100644 index 0000000..1c907f4 --- /dev/null +++ b/ci/epp-validate.yaml @@ -0,0 +1,5 @@ +repos: + - repo: 'https://github.com/chriskuehl/puppet-pre-commit-hooks.git' + rev: v2.2.0 + hooks: + - id: epp-validate diff --git a/ci/erb-validate.yaml b/ci/erb-validate.yaml new file mode 100644 index 0000000..a861bc6 --- /dev/null +++ b/ci/erb-validate.yaml @@ -0,0 +1,5 @@ +repos: + - repo: 'https://github.com/chriskuehl/puppet-pre-commit-hooks.git' + rev: v2.2.0 + hooks: + - id: erb-validate diff --git a/ci/puppet-lint.yaml b/ci/puppet-lint.yaml new file mode 100644 index 0000000..99957c2 --- /dev/null +++ b/ci/puppet-lint.yaml @@ -0,0 +1,10 @@ +repos: + - repo: 'https://github.com/chriskuehl/puppet-pre-commit-hooks.git' + rev: v2.2.0 + hooks: + - id: puppet-lint + args: + - --no-80chars-check + - --no-documentation-check + - --no-puppet_url_without_modules-check + - --fail-on-warnings diff --git a/ci/puppet-validate.yaml b/ci/puppet-validate.yaml new file mode 100644 index 0000000..68c3f88 --- /dev/null +++ b/ci/puppet-validate.yaml @@ -0,0 +1,5 @@ +repos: + - repo: 'https://github.com/chriskuehl/puppet-pre-commit-hooks.git' + rev: v2.2.0 + hooks: + - id: puppet-validate diff --git a/ci/ruby-check.yaml b/ci/ruby-check.yaml new file mode 100644 index 0000000..81e93b8 --- /dev/null +++ b/ci/ruby-check.yaml @@ -0,0 +1,10 @@ +repos: + - repo: 'https://github.com/chriskuehl/puppet-pre-commit-hooks.git' + rev: v2.2.0 + hooks: + - id: ruby-validate + - repo: 'https://github.com/jumanjihouse/pre-commit-hooks' + rev: 3.0.0 + hooks: + - id: reek + - id: rubocop diff --git a/ci/yamllint.yaml b/ci/yamllint.yaml new file mode 100644 index 0000000..94a84ff --- /dev/null +++ b/ci/yamllint.yaml @@ -0,0 +1,10 @@ +repos: + - repo: 'https://github.com/adrienverge/yamllint' + rev: v1.32.0 + hooks: + - id: 'yamllint' + args: + [ + "-d {extends: relaxed, rules: {line-length: disable}, ignore: chart}", + "-s", + ]