From 6cff97e2bb594a700fca200349464c3978696990 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Sat, 19 Apr 2025 15:39:02 +0200 Subject: [PATCH] Add CI for ansible-lint --- .config/ansible-lint.yml | 8 ++++++++ .forgejo/workflows/test.yaml | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .config/ansible-lint.yml create mode 100644 .forgejo/workflows/test.yaml diff --git a/.config/ansible-lint.yml b/.config/ansible-lint.yml new file mode 100644 index 0000000..658acbd --- /dev/null +++ b/.config/ansible-lint.yml @@ -0,0 +1,8 @@ +--- +skip_list: + - fqcn[action-core] + - name[casing] + - name[missing] + +exclude_paths: + - .forgejo diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml new file mode 100644 index 0000000..52f8c18 --- /dev/null +++ b/.forgejo/workflows/test.yaml @@ -0,0 +1,19 @@ +name: Test + +on: + push: + branches: + - main + +jobs: + + build: + runs-on: docker + container: + image: alpine:latest + + steps: + - run: apk add nodejs ansible ansible-lint + - uses: actions/checkout@v4 + + - run: ansible-lint