From 01e64fc9e42eade1f37a50fbe04edb20fcf28c55 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Mon, 14 Apr 2025 22:31:22 +0200 Subject: [PATCH] feat(act-runner): init --- .ansible-lint | 3 +- .drone.yml | 42 -------------------------- .gitea/workflows/ansible-linters.yaml | 21 +++++++++++++ .gitea/workflows/markdown-linters.yaml | 20 ++++++++++++ .gitignore | 1 + .markdownlint.yaml | 18 ++++------- .yamllint.yaml | 17 +++++++++++ meta/main.yml | 1 + 8 files changed, 68 insertions(+), 55 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/ansible-linters.yaml create mode 100644 .gitea/workflows/markdown-linters.yaml create mode 100644 .gitignore create mode 100644 .yamllint.yaml diff --git a/.ansible-lint b/.ansible-lint index dff231b..23a163f 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,3 +1,4 @@ --- -skip_list: [] \ No newline at end of file +exclude_paths: +- .gitea/ diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 4ad0a59..0000000 --- a/.drone.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -kind: pipeline -type: kubernetes -name: linter - -platform: - os: linux - -steps: -- name: markdown lint - commands: - - markdownlint *.md - image: docker.io/volkerraschek/markdownlint:0.44.0 - resources: - limits: - cpu: 50 - memory: 50M - -- name: email-notification - environment: - PLUGIN_HOST: - from_secret: smtp_host - PLUGIN_USERNAME: - from_secret: smtp_username - PLUGIN_PASSWORD: - from_secret: smtp_password - PLUGIN_FROM: - from_secret: smtp_mail_address - image: docker.io/drillster/drone-email:latest - resources: - limits: - cpu: 50 - memory: 25M - when: - status: - - changed - - failure - -trigger: - event: - exclude: - - tag diff --git a/.gitea/workflows/ansible-linters.yaml b/.gitea/workflows/ansible-linters.yaml new file mode 100644 index 0000000..429d1bd --- /dev/null +++ b/.gitea/workflows/ansible-linters.yaml @@ -0,0 +1,21 @@ +name: Ansible Linter + +on: + pull_request: + types: [ "opened", "reopened", "synchronize" ] + push: + branches: [ '**' ] + tags-ignore: [ '**' ] + +jobs: + ansible-lint: + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run ansible-lint + uses: ansible/ansible-lint@v25.2.1 + with: + args: "--config-file .ansible-lint" + setup_python: "true" + requirements_file: "requirements.yml" \ No newline at end of file diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml new file mode 100644 index 0000000..a31bf98 --- /dev/null +++ b/.gitea/workflows/markdown-linters.yaml @@ -0,0 +1,20 @@ +name: Lint Markdown files + +on: + pull_request: + types: [ "opened", "reopened", "synchronize" ] + push: + branches: [ '**' ] + tags-ignore: [ '**' ] + workflow_dispatch: {} + +jobs: + markdown-lint: + container: + image: git.cryptic.systems/volker.raschek/markdownlint:0.44.0 + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4.2.2 + - name: Lint Markdown files + run: markdownlint --config .markdownlint.yaml . diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..feaf22e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.ansible \ No newline at end of file diff --git a/.markdownlint.yaml b/.markdownlint.yaml index a8a3ae0..0cca4db 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -45,19 +45,17 @@ MD012: # MD013/line-length - Line length MD013: # Number of characters - line_length: 80 + line_length: 120 # Number of characters for headings - heading_line_length: 80 + heading_line_length: 120 # Number of characters for code blocks - code_block_line_length: 80 + code_block_line_length: 120 # Include code blocks code_blocks: false # Include tables tables: false # Include headings headings: true - # Include headings - headers: true # Strict length checking strict: false # Stern length checking @@ -70,11 +68,6 @@ MD022: # Blank lines below heading lines_below: 1 -# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content -MD024: - # Only check sibling headings - allow_different_nesting: true - # MD025/single-title/single-h1 - Multiple top-level headings in the same document MD025: # Heading level @@ -128,7 +121,8 @@ MD041: # MD044/proper-names - Proper names should have the correct capitalization MD044: # List of proper names - names: [] + names: + - gitea # Include code blocks code_blocks: false @@ -140,4 +134,4 @@ MD046: # MD048/code-fence-style - Code fence style MD048: # Code fence syle - style: "backtick" \ No newline at end of file + style: "backtick" diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..f22686c --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,17 @@ +# +# Documentation: +# https://yamllint.readthedocs.io/en/stable/ +# + +rules: + brackets: + forbid: false + min-spaces-inside: 0 + max-spaces-inside: 2 + min-spaces-inside-empty: 0 + max-spaces-inside-empty: 0 + indentation: + spaces: 2 + indent-sequences: false + line-length: + max: 360 diff --git a/meta/main.yml b/meta/main.yml index 49feaa9..5c1193e 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,4 +1,5 @@ galaxy_info: + namespace: volker_raschek role_name: renovate author: Markus Pesch description: Role to configure renovate as container image