File tree Expand file tree Collapse file tree 2 files changed +6
-23
lines changed Expand file tree Collapse file tree 2 files changed +6
-23
lines changed Original file line number Diff line number Diff line change 2020 - name : checkout
2121 uses : actions/checkout@v4
2222 - name : ansible-lint
23- uses : ansible-community /ansible-lint-action @main
23+ uses : ansible/ansible-lint@main
2424
2525 molecule :
2626 needs :
4040 tag : " latest"
4141 - image : " debian"
4242 tag : " bullseye"
43- - image : " fedora"
44- tag : " 40"
4543 - image : " fedora"
4644 tag : " latest"
4745 - image : " ubuntu"
5957 - name : Set up Python
6058 uses : actions/setup-python@v5
6159 with :
62- python-version : " 3.13 "
60+ python-version : " 3.* "
6361
6462 - name : Configure Docker for systemd
6563 run : |
7876 - name : Install dependencies
7977 run : |
8078 python -m pip install --upgrade pip
81- pip install ansible-lint molecule molecule-plugins[docker] ansible-core
82- if [ -f ansible-role-bootstrap/requirements.txt ]; then pip install -r ansible-role-bootstrap/requirements.txt; fi
83- if [ -f ansible-role-bootstrap/requirements.yml ]; then ansible-galaxy install -r ansible-role-bootstrap/requirements.yml; fi
84-
85- # Create proper role directory structure for molecule
86- mkdir -p ~/.ansible/roles
87- ln -s ${GITHUB_WORKSPACE}/ansible-role-bootstrap ~/.ansible/roles/robertdebock.bootstrap
79+ pip3 install ansible molecule molecule-plugins[docker] docker
8880
8981 - name : Test with molecule
9082 run : |
Original file line number Diff line number Diff line change @@ -8,20 +8,13 @@ molecule:
88 script :
99 - apt-get update -qq
1010 - apt-get -y -qq install yamllint docker.io
11- # Configure Docker for systemd
1211 - mkdir -p /etc/docker
1312 - echo '{"features":{"buildkit":true},"exec-opts":["native.cgroupdriver=systemd"]}' > /etc/docker/daemon.json
1413 - service docker restart || true
15- # Install dependencies and run tests
16- - pip install --no-cache-dir ansible-lint molecule molecule-plugins[docker] ansible-core
17- - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
18- - if [ -f requirements.yml ]; then ansible-galaxy install -r requirements.yml; fi
19- # Create proper role directory structure for molecule
20- - mkdir -p ~/.ansible/roles
21- - ln -s $CI_PROJECT_DIR ~/.ansible/roles/robertdebock.bootstrap
22- # Run molecule tests
14+ - python -m pip install --upgrade pip
15+ - pip3 install ansible molecule molecule-plugins[docker] docker
2316 - cd $CI_PROJECT_DIR
24- - ANSIBLE_ROLES_PATH=~/.ansible/roles:$CI_PROJECT_DIR molecule test
17+ - molecule test
2518 rules :
2619 - if : $CI_COMMIT_REF_NAME == "master"
2720 parallel :
@@ -36,8 +29,6 @@ molecule:
3629 tag : " latest"
3730 - image : " debian"
3831 tag : " bullseye"
39- - image : " fedora"
40- tag : " 40"
4132 - image : " fedora"
4233 tag : " latest"
4334 - image : " ubuntu"
You can’t perform that action at this time.
0 commit comments