-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): fix molecule for GitHub Actions
- Loading branch information
1 parent
ce9b53e
commit 9e1f021
Showing
2 changed files
with
19 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
--- | ||
# | ||
# Ansible managed | ||
# | ||
|
||
name: Ansible Molecule | ||
|
||
|
@@ -21,6 +18,7 @@ jobs: | |
uses: actions/checkout@v3 | ||
- name: ansible-lint | ||
uses: ansible-community/ansible-lint-action@main | ||
|
||
test: | ||
needs: | ||
- lint | ||
|
@@ -33,35 +31,34 @@ jobs: | |
tag: "latest" | ||
- image: "debian" | ||
tag: "bullseye" | ||
- image: "debian" | ||
tag: "buster" | ||
- image: "enterpriselinux" | ||
tag: "7" | ||
- image: "enterpriselinux" | ||
tag: "8" | ||
- image: "enterpriselinux" | ||
tag: "latest" | ||
- image: "fedora" | ||
tag: "37" | ||
- image: "fedora" | ||
tag: "38" | ||
- image: "opensuse" | ||
tag: "latest" | ||
tag: "39" | ||
- image: "ubuntu" | ||
tag: "latest" | ||
- image: "ubuntu" | ||
tag: "focal" | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: "${{ github.repository }}" | ||
uses: actions/checkout@v4 | ||
|
||
- name: disable apparmor for mysql | ||
run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ | ||
|
||
- name: parse apparmor for mysql | ||
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld | ||
- name: molecule | ||
uses: robertdebock/[email protected] | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: molecule | ||
run: molecule converge | ||
env: | ||
image: ${{ matrix.config.image }} | ||
tag: ${{ matrix.config.tag }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters