mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-24 10:13:30 +07:00
👷 Add Github Action
This commit is contained in:
committed by
Emilien M
parent
88934d3631
commit
2fd648e62e
@@ -10,6 +10,9 @@ scenario:
|
||||
- idempotence
|
||||
- verify
|
||||
- destroy
|
||||
dependency:
|
||||
name: shell
|
||||
command: "${MOLECULE_SCENARIO_DIRECTORY}/../_shared/tools/install-dependencies.sh"
|
||||
driver:
|
||||
name: docker
|
||||
role_name_check: 1
|
||||
|
||||
8
molecule/_shared/tools/install-dependencies.sh
Executable file
8
molecule/_shared/tools/install-dependencies.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "${IS_GITHUB_ACTIONS}" ]; then
|
||||
echo "This script is run in GitHub Actions."
|
||||
pip install netaddr
|
||||
fi
|
||||
|
||||
ansible-galaxy collection install -r requirements.yml
|
||||
Reference in New Issue
Block a user