feat: add more distros to test the role
All checks were successful
checks-test / Lint (push) Successful in 14s
checks-test / molecule (debian11) (push) Successful in 1m38s
checks-test / molecule (debian12) (push) Successful in 1m46s
checks-test / molecule (rockylinux9) (push) Successful in 1m52s
checks-test / molecule (ubuntu2204) (push) Successful in 1m50s
checks-test / molecule (ubuntu2404) (push) Successful in 1m21s
All checks were successful
checks-test / Lint (push) Successful in 14s
checks-test / molecule (debian11) (push) Successful in 1m38s
checks-test / molecule (debian12) (push) Successful in 1m46s
checks-test / molecule (rockylinux9) (push) Successful in 1m52s
checks-test / molecule (ubuntu2204) (push) Successful in 1m50s
checks-test / molecule (ubuntu2404) (push) Successful in 1m21s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: checks-test
|
||||
'on':
|
||||
"on":
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
@@ -10,7 +10,7 @@ name: checks-test
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: 'palkx.users'
|
||||
working-directory: "palkx.users"
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
@@ -20,17 +20,17 @@ jobs:
|
||||
- name: Checkout the codebase
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'palkx.users'
|
||||
path: "palkx.users"
|
||||
- name: Setup Python 3
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
python-version: "3.x"
|
||||
- name: Intall test dependencies
|
||||
run: pip3 install yamllint ansible-lint
|
||||
- name: Lint code with yamllint
|
||||
run: 'yamllint .'
|
||||
run: "yamllint ."
|
||||
- name: Lint code with yamllint
|
||||
run: 'ansible-lint --profile production --show-relpath .'
|
||||
run: "ansible-lint --profile production --show-relpath ."
|
||||
molecule:
|
||||
name: molecule
|
||||
runs-on: ubuntu-latest
|
||||
@@ -39,21 +39,24 @@ jobs:
|
||||
distro:
|
||||
- rockylinux9
|
||||
- ubuntu2204
|
||||
- ubuntu2404
|
||||
- debian11
|
||||
- debian12
|
||||
|
||||
steps:
|
||||
- name: Checkout the codebase
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'palkx.users'
|
||||
path: "palkx.users"
|
||||
- name: Setup Python 3
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
python-version: "3.x"
|
||||
- name: Intall test dependencies
|
||||
run: pip3 install ansible molecule molecule-plugins[docker] docker
|
||||
- name: Run Molecule tests
|
||||
run: molecule test
|
||||
env:
|
||||
PY_COLORS: '1'
|
||||
ANSIBLE_FORCE_COLOR: '1'
|
||||
PY_COLORS: "1"
|
||||
ANSIBLE_FORCE_COLOR: "1"
|
||||
MOLECULE_DISTRO: ${{ matrix.distro }}
|
||||
|
||||
@@ -45,22 +45,22 @@
|
||||
vars:
|
||||
users_groups:
|
||||
admin:
|
||||
gid: 1000
|
||||
admin1:
|
||||
gid: 1001
|
||||
admin2:
|
||||
admin1:
|
||||
gid: 1002
|
||||
admin3:
|
||||
admin2:
|
||||
gid: 1003
|
||||
admin4:
|
||||
admin3:
|
||||
gid: 1004
|
||||
admin4:
|
||||
gid: 1005
|
||||
remote-users:
|
||||
gid: 856
|
||||
no-gid-group: {}
|
||||
users:
|
||||
admin:
|
||||
shell: /bin/sh
|
||||
uid: 1000
|
||||
uid: 1001
|
||||
groups:
|
||||
- admin
|
||||
- remote-users
|
||||
@@ -70,10 +70,10 @@
|
||||
authorized_keys:
|
||||
default:
|
||||
# yamllint disable-line rule:line-length
|
||||
key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390'
|
||||
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390"
|
||||
admin1:
|
||||
shell: /bin/sh
|
||||
uid: 1001
|
||||
uid: 1002
|
||||
groups:
|
||||
- admin1
|
||||
- remote-users
|
||||
@@ -83,10 +83,10 @@
|
||||
authorized_keys:
|
||||
default:
|
||||
# yamllint disable-line rule:line-length
|
||||
key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390'
|
||||
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390"
|
||||
admin2:
|
||||
shell: /bin/sh
|
||||
uid: 1002
|
||||
uid: 1003
|
||||
groups:
|
||||
- admin2
|
||||
- remote-users
|
||||
@@ -96,10 +96,10 @@
|
||||
authorized_keys:
|
||||
default:
|
||||
# yamllint disable-line rule:line-length
|
||||
key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390'
|
||||
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390"
|
||||
admin3:
|
||||
shell: /bin/sh
|
||||
uid: 1003
|
||||
uid: 1004
|
||||
groups:
|
||||
- admin3
|
||||
- remote-users
|
||||
@@ -109,7 +109,7 @@
|
||||
authorized_keys:
|
||||
default:
|
||||
# yamllint disable-line rule:line-length
|
||||
key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390'
|
||||
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390"
|
||||
admin4:
|
||||
shell: /bin/bash
|
||||
groups:
|
||||
@@ -121,4 +121,4 @@
|
||||
authorized_keys:
|
||||
default:
|
||||
# yamllint disable-line rule:line-length
|
||||
key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390'
|
||||
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAxFJolWPmbFVMMyD9kxQb353ngyUsEebgkK9AcnjOI cardno:13_460_390"
|
||||
|
||||
Reference in New Issue
Block a user