ci: remove old test action in favor of new template one
All checks were successful
development / Check commit compliance (push) Successful in 27s
test / Retrieve Credentials (pull_request) Successful in 1s
pull-requests-open / Check commit compliance (pull_request) Successful in 5s
test / end_to_end_role (default, debian11) (pull_request) Successful in 36s
test / end_to_end_role (default, debian12) (pull_request) Successful in 55s
test / end_to_end_role (default, ubuntu2204) (pull_request) Successful in 36s
test / end_to_end_role (default, ubuntu2004) (pull_request) Successful in 1m7s
test / end_to_end_role (with_custom_flags, debian11) (pull_request) Successful in 35s
test / end_to_end_role (with_custom_flags, debian12) (pull_request) Successful in 36s
test / end_to_end_role (default, ubuntu2404) (pull_request) Successful in 57s
test / end_to_end_role (with_custom_flags, ubuntu2004) (pull_request) Successful in 36s
test / end_to_end_role (with_custom_flags, ubuntu2404) (pull_request) Successful in 36s
test / end_to_end_role (with_custom_flags, ubuntu2204) (pull_request) Successful in 56s

This commit is contained in:
Bertrand Lanson 2024-11-09 10:52:39 +01:00
parent b82426201d
commit fee75fb57c
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw
2 changed files with 1 additions and 53 deletions

View File

@ -1,52 +0,0 @@
---
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_custom_flags]
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 }}

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
# ignore molecule/testinfra pycache
**/__pycache__
.vscode
.vscode