From 5b67e09fd355a432fa72fa5140d5107ac5bc1d1a Mon Sep 17 00:00:00 2001 From: Simon Caron Date: Sat, 12 Nov 2022 15:20:05 -0500 Subject: [PATCH] Add GitHub Lint Workflow --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..cb1633f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +--- +name: Lint +'on': + pull_request: + push: + branches: + - master + +jobs: + + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Check out the codebase. + uses: actions/checkout@v3 + + - name: Set up Python 3.7. + uses: actions/setup-python@v4 + with: + python-version: '3.x' + + - name: Install test dependencies. + run: pip3 install yamllint ansible-lint ansible + + - name: Run yamllint. + run: yamllint . + + - name: Run ansible-lint. + run: ansible-lint diff --git a/README.md b/README.md index 9dcc4c4..59747fb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Ansible Role: Proxmox VE Acme Config ========= +![Lint](https://github.com/simoncaron/ansible-role-pve_acme/actions/workflows/lint.yml/badge.svg) + An Ansible Role that configures acme plugin and certificates for a Proxmox VE node. This role was tested on Proxmox VE 7.2.