provision_ansible_user/.gitea/workflows/test.yml
Bertrand Lanson c30e75bdf8
Some checks failed
test / Linting (push) Successful in 30s
test / Molecule tests (default, ubuntu2004) (push) Failing after 53s
test / Molecule tests (default, debian11) (push) Failing after 1m25s
test / Molecule tests (default, debian12) (push) Failing after 1m19s
test / Molecule tests (with_acl_enabled, debian11) (push) Failing after 3s
test / Molecule tests (with_acl_enabled, debian12) (push) Failing after 3s
test / Molecule tests (with_acl_enabled, ubuntu2004) (push) Failing after 3s
test / Molecule tests (with_acl_enabled, ubuntu2204) (push) Failing after 2s
test / Molecule tests (default, ubuntu2204) (push) Failing after 51s
test to see if this is a bug locally only
2023-07-14 23:05:14 +02:00

53 lines
1.4 KiB
YAML

---
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 }}
molecule-test:
name: Molecule tests
runs-on: ubuntu-latest
needs: lint
container:
image: git.ednz.fr/container-factory/ansible-runner:act-latest
credentials:
username: ${{ secrets.ACTIONS_USER }}
password: ${{ secrets.ACTIONS_TOKEN }}
strategy:
matrix:
test_os: [debian11, debian12, ubuntu2004, ubuntu2204]
scenario: [default, with_acl_enabled]
env:
ANSIBLE_HOST_KEY_CHECKING: 'false'
ANSIBLE_FORCE_COLOR: 'true'
ANSIBLE_PYTHON_INTERPRETER: /usr/bin/python3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: "Molecule test"
run: molecule test -s ${{ matrix.scenario }}
shell: bash
working-directory: ${{ gitea.workspace }}
env:
MOLECULE_TEST_OS: ${{ matrix.test_os }}