From 216beff86fd9f80d6fda8deade0732c81854f30b Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sun, 19 Oct 2025 06:48:51 -0500 Subject: [PATCH] +lint workflow, gitignore --- .forgejo/workflows/lint.yml | 35 +++++++++++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 36 insertions(+) create mode 100644 .forgejo/workflows/lint.yml create mode 100644 .gitignore diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml new file mode 100644 index 0000000..271b0ae --- /dev/null +++ b/.forgejo/workflows/lint.yml @@ -0,0 +1,35 @@ +name: ci-lint + +on: # yamllint disable-line rule:truthy + pull_request: + push: + branches: + - master + schedule: + - cron: "20 4 * * 0" + +jobs: + test: + runs-on: docker + container: + image: fedora:42 # lock to *latest stable*; rawhide/next is 'latest' tag + steps: + + - name: Checkout + uses: actions/checkout@v3 + + - name: Install packages and ansible + run: | + echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf + dnf -yq install nodejs git pipx + pipx install ansible-core ansible-lint + ansible-galaxy collection install -r meta/requirements.yml + env: + PY_COLORS: '1' + ANSIBLE_FORCE_COLOR: '1' + + - name: Lint + run: ansible-lint + env: + PY_COLORS: '1' + ANSIBLE_FORCE_COLOR: '1' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e6c4b94 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.ansible/**