Merge pull request #340 from hifis-net/dependabot/pip/ansible-lint-24… #322
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
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ) | |
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR) | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
--- | |
name: "hifis.toolkit.gitlab_runner" | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/gitlab_runner.yml' | |
- 'roles/gitlab_runner/**' | |
- 'molecule/gitlab_runner/**' | |
- 'Pipfile' | |
- 'Pipfile.lock' | |
push: | |
branches: | |
- "main" | |
tags: | |
- "v*.*.*" | |
paths: | |
- '.github/workflows/gitlab_runner.yml' | |
- 'roles/gitlab_runner/**' | |
- 'molecule/gitlab_runner/**' | |
- 'Pipfile' | |
- 'Pipfile.lock' | |
schedule: | |
- cron: "0 0 * * *" | |
env: | |
PY_COLORS: 1 | |
ANSIBLE_FORCE_COLOR: 1 | |
jobs: | |
test: | |
name: "Run Molecule tests." | |
runs-on: "ubuntu-24.04" | |
env: | |
PY_COLORS: 1 | |
ANSIBLE_FORCE_COLOR: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- "ghcr.io/hifis-net/ubuntu-systemd:20.04" | |
- "ghcr.io/hifis-net/ubuntu-systemd:22.04" | |
- "ghcr.io/hifis-net/ubuntu-systemd:24.04" | |
- "ghcr.io/hifis-net/debian-systemd:11" | |
- "ghcr.io/hifis-net/debian-systemd:12" | |
steps: | |
- name: "Check out the codebase." | |
uses: "actions/checkout@v4" | |
with: | |
path: "ansible_collections/hifis/toolkit" | |
- name: "Prepare the job environment." | |
uses: "./ansible_collections/hifis/toolkit/.github/workflows/prepare-action" | |
# https://github.com/ansible/molecule/issues/3806 | |
- name: "Help molecule to find the dependencies" | |
run: | | |
mkdir -p /home/runner/.ansible | |
ln -s /home/runner/work/ansible-collection-toolkit/ansible-collection-toolkit/ansible_collections/hifis/toolkit/roles \ | |
/home/runner/.ansible/roles | |
- name: "Run Molecule tests." | |
run: "pipenv run molecule test -s gitlab_runner" | |
env: | |
MOLECULE_IMAGE: "${{ matrix.image }}" | |
AUTHENTICATION_TOKEN: "${{ secrets.authentication_token }}" | |
working-directory: "ansible_collections/hifis/toolkit" |