diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3385023..c84e9fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,7 @@ name: CI pull_request: push: branches: - - master - schedule: - - cron: "30 6 * * 3" + - main defaults: run: @@ -34,34 +32,3 @@ jobs: - name: Lint code. run: | yamllint . - - molecule: - name: Molecule - runs-on: ubuntu-latest - strategy: - matrix: - distro: - - rockylinux9 - - ubuntu2004 - - debian10 - - steps: - - name: Check out the codebase. - uses: actions/checkout@v4 - with: - path: 'vgrid.frr_exporter' - - - name: Set up Python 3. - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - - name: Install test dependencies. - run: pip3 install ansible molecule molecule-plugins[docker] docker - - - name: Run Molecule tests. - run: molecule test - env: - PY_COLORS: '1' - ANSIBLE_FORCE_COLOR: '1' - MOLECULE_DISTRO: ${{ matrix.distro }} diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml deleted file mode 100644 index bdafa4d..0000000 --- a/molecule/default/converge.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -- name: Converge - hosts: all - become: true - - pre_tasks: - - name: Update apt cache. - apt: update_cache=yes cache_valid_time=600 - when: ansible_os_family == 'Debian' - changed_when: false - - roles: - - role: vgrid.frr_exporter diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml deleted file mode 100644 index 3c2f1e5..0000000 --- a/molecule/default/molecule.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -role_name_check: 1 -dependency: - name: galaxy - options: - ignore-errors: true -driver: - name: docker -platforms: - - name: instance - image: "geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux9}-ansible:latest" - command: ${MOLECULE_DOCKER_COMMAND:-""} - volumes: - - /sys/fs/cgroup:/sys/fs/cgroup:rw - cgroupns_mode: host - privileged: true - pre_build_image: true -provisioner: - name: ansible - playbooks: - converge: ${MOLECULE_PLAYBOOK:-converge.yml}