mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Using envs properly
This commit is contained in:
28
.github/workflows/telegraf.yml
vendored
28
.github/workflows/telegraf.yml
vendored
@ -43,10 +43,10 @@ jobs:
|
|||||||
image: geerlingguy/docker-debian11-ansible:latest
|
image: geerlingguy/docker-debian11-ansible:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.11
|
- name: Set up Python 3.11
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.11.11
|
python-version: 3.11.11
|
||||||
|
|
||||||
@ -56,17 +56,17 @@ jobs:
|
|||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Run role tests on empty systems in check-mode
|
- name: Run role tests on empty systems in check-mode
|
||||||
run: >-
|
env:
|
||||||
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
|
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
|
||||||
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
|
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
|
||||||
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
|
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
|
||||||
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
|
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
|
||||||
molecule test -s empty-checkmode
|
run: molecule test -s empty-checkmode
|
||||||
|
|
||||||
- name: Run role tests
|
- name: Run role tests
|
||||||
run: >-
|
env:
|
||||||
MY_MOLECULE_CONTAINER=${{ matrix.molecule_distro.container }}
|
MY_MOLECULE_CONTAINER: ${{ matrix.molecule_distro.container }}
|
||||||
MY_MOLECULE_IMAGE=${{ matrix.molecule_distro.image }}
|
MY_MOLECULE_IMAGE: ${{ matrix.molecule_distro.image }}
|
||||||
MY_MOLECULE_GROUP=${{ matrix.molecule_distro.group }}
|
MY_MOLECULE_GROUP: ${{ matrix.molecule_distro.group }}
|
||||||
MY_MOLECULE_DOCKER_COMMAND=${{ matrix.molecule_distro.command }}
|
MY_MOLECULE_DOCKER_COMMAND: ${{ matrix.molecule_distro.command }}
|
||||||
molecule test
|
run: molecule test
|
||||||
|
Reference in New Issue
Block a user