molecule #63
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: molecule | |
on: | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: "0 3 * * 0" | |
defaults: | |
run: | |
working-directory: 'nephelaiio.growfs' | |
jobs: | |
mirror: | |
name: mirror | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
with: | |
path: 'nephelaiio.growfs' | |
- name: Test debian mirror access (http) | |
run: curl -sD- http://debian-archive.trafficmanager.net/debian/ | |
- name: Test debian security mirror access (http) | |
run: curl -sD- http://debian-archive.trafficmanager.net/debian-security/ | |
molecule: | |
name: molecule | |
runs-on: libvirt | |
strategy: | |
matrix: | |
include: | |
- scenario: ubuntu | |
release: jammy | |
- scenario: debian | |
release: bullseye | |
- scenario: debian | |
release: bookworm | |
steps: | |
- name: Check out the codebase. | |
uses: actions/checkout@v4 | |
with: | |
path: 'nephelaiio.growfs' | |
- name: Set up Python 3. | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Update ubuntu repositories | |
run: sudo apt-get update | |
- name: Install make | |
run: sudo apt-get install -y make | |
- name: Install dependencies | |
run: make install | |
- name: Disable firewall | |
run: sudo ufw disable | |
- name: Debug test environment | |
run: make debug | |
- name: run molecule tests | |
run: make test | |
env: | |
PY_COLORS: '1' | |
ANSIBLE_FORCE_COLOR: '1' | |
MOLECULE_SCENARIO: ${{ matrix.scenario }} | |
MOLECULE_DISTRO: "${{ matrix.release }}" | |
MOLECULE_OUTPUT_DIR: "/tmp/logs" | |
- name: Upload install logs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: install-logs | |
path: | | |
/tmp/logs/*.png | |
/tmp/logs/*.log | |
if-no-files-found: ignore | |
if: always() |