Skip to content

fixes

fixes #22

---
name: Molecule Testsing
on: # yamllint disable-line rule:truthy
push: null
pull_request:
branches:
- main
- master
permissions: read-all
concurrency:
group: >-
${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test_bareos:
runs-on: ubuntu-latest
container:
image: ubuntu:latest
volumes:
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
options: --privileged --cap-add SYS_ADMIN
permissions:
statuses: write
strategy:
fail-fast: false
matrix:
role:
- bareos
steps:
- name: checkout
uses: actions/checkout@v4
with:
path: "${{ github.repository }}"
- name: Install flake and molecule plugins and show molecule version
run: |
echo $PATH
pwd
ls -lha $(pwd)
#poetry run pip install "molecule-plugins[lint]"
#poetry run flake8 molecule --version || true
- name: molecule
uses: gofrolist/molecule-action@v2
with:
molecule_working_dir: alexanderbazhenoff/ansible-collection-linux/roles/${{ matrix.role }}
scenario: default
env:
ANSIBLE_FORCE_COLOR: '1'