Consistently resolve yamllint octal findings #131
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
name: "davedittrich.utils.dropins" | |
on: | |
push: | |
paths: | |
- 'roles/dropins/**' | |
- 'molecule/dropins/**' | |
- '.github/workflows/dropins.yml' | |
pull_request: | |
paths: | |
- 'roles/dropins/**' | |
- 'molecule/dropins/**' | |
- '.github/workflows/dropins.yml' | |
jobs: | |
dropins: | |
runs-on: ubuntu-latest | |
if: contains(github.ref, '/feature/') || contains(github.ref, '/bugfix/') | |
env: | |
PY_COLORS: 1 | |
ANSIBLE_FORCE_COLOR: 1 | |
USER_ID: runner | |
GROUP_ID: docker | |
strategy: | |
fail-fast: true | |
matrix: | |
molecule_distro: | |
# - { "distro":"centos7", "command":"/usr/sbin/init" } | |
# - { "distro":"centos8", "command":"/usr/sbin/init" } | |
# - { "distro":"fedora33", "command":"/usr/sbin/init" } | |
# - { "distro":"fedora34", "command":"/usr/sbin/init" } | |
# - { "distro":"ubuntu1804", "command":"/lib/systemd/systemd" } | |
- { "distro":"ubuntu2004", "command":"/lib/systemd/systemd" } | |
# - { "distro":"ubuntu2204", "command":"/lib/systemd/systemd" } | |
# - { "distro":"debian9", "command":"/lib/systemd/systemd" } | |
- { "distro":"debian10", "command":"/lib/systemd/systemd" } | |
collection_role: | |
- dropins | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
check-latest: true | |
- run: python --version | |
- name: Install dependencies | |
run: | | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sudo sh get-docker.sh | |
make install-poetry update-packages | |
- name: Build the collection | |
run: | | |
collection_file=$( basename $(ansible-galaxy collection build -f | awk -F" " '{print $NF}')) | |
echo "COLLECTION_FILE=$collection_file" >> $GITHUB_ENV | |
- name: Install the collection | |
run: ansible-galaxy collection install "${{ env.COLLECTION_FILE }}" | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Inspect builder | |
run: | | |
echo "Name: ${{ steps.buildx.outputs.name }}" | |
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}" | |
echo "Status: ${{ steps.buildx.outputs.status }}" | |
echo "Flags: ${{ steps.buildx.outputs.flags }}" | |
echo "Platforms: ${{ steps.buildx.outputs.platforms }}" | |
- name: Run role tests | |
run: >- | |
molecule --version && | |
ansible --version && | |
MOLECULE_COMMAND=${{ matrix.molecule_distro.command }} | |
MOLECULE_DISTRO=${{ matrix.molecule_distro.distro }} | |
molecule --debug test -s ${{ matrix.collection_role }} |