feat(ci): add linting job
Some checks failed
test / Linting (push) Failing after 28s

This commit is contained in:
Bertrand Lanson 2023-12-05 22:17:12 +01:00
parent bf707ca497
commit 3d3ef70dba

24
.gitea/workflows/test.yml Normal file
View File

@ -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 }}