diff options
| author | Colin Wilk <colin@wilk.cx> | 2026-07-02 18:16:56 +0200 |
|---|---|---|
| committer | Colin Wilk <colin@wilk.cx> | 2026-07-02 18:19:38 +0200 |
| commit | e0d215ddc8b22e5f16acf40240a7561ee24e4454 (patch) | |
| tree | 6ce2dfdddcceb3bd639d6ceecb14444241db9b6f /.github/workflows/molecule.yml | |
| parent | 50b914e77695fd1cdb294653f20143747e7e3b01 (diff) | |
| download | ansible-role-borgbackup-e0d215ddc8b22e5f16acf40240a7561ee24e4454.tar.gz ansible-role-borgbackup-e0d215ddc8b22e5f16acf40240a7561ee24e4454.zip | |
Add github actions for molecule
Diffstat (limited to '.github/workflows/molecule.yml')
| -rw-r--r-- | .github/workflows/molecule.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml new file mode 100644 index 0000000..6fa12b5 --- /dev/null +++ b/.github/workflows/molecule.yml @@ -0,0 +1,42 @@ +--- +name: Molecule + +"on": + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + molecule: + name: Run Molecule Scenario + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + scenario: + - default + - delete + env: + PY_COLORS: "1" + ANSIBLE_FORCE_COLOR: "1" + ANSIBLE_ALLOW_BROKEN_CONDITIONALS: "True" + ANSIBLE_INJECT_INVOCATION: "true" + steps: + - name: Check out the codebase + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install test dependencies + run: | + python -m pip install --upgrade pip + python -m pip install ansible-core docker molecule molecule-plugins[docker] pytest pytest-testinfra requests + + - name: Run Molecule scenario + run: molecule test -s "${{ matrix.scenario }}" |