From 3d3ef70dba2a4785a622e556759c03873b1e46ee Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Tue, 5 Dec 2023 22:17:12 +0100 Subject: [PATCH] feat(ci): add linting job --- .gitea/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..fd2a722 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,24 @@ +--- +name: test +on: [push] + +jobs: + lint: + name: Linting + runs-on: ubuntu-latest + container: + image: git.ednz.fr/container-factory/ansible-runner:act-latest + credentials: + username: ${{ secrets.ACTIONS_USER }} + password: ${{ secrets.ACTIONS_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: "Ansible lint" + run: ansible-lint --force-color + working-directory: ${{ gitea.workspace }} + + - name: "YAML lint" + run: yamllint . -f colored -c .yamllint + working-directory: ${{ gitea.workspace }}