-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update GitHub action workflows - Update supported OS versions - Switch from Docker to Podman for Molecule tests - Update linting config
- Loading branch information
Showing
9 changed files
with
40 additions
and
87 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
skip_list: | ||
- 'yaml' | ||
- 'role-name' | ||
--- | ||
exclude_paths: | ||
- ./molecule/default/ | ||
- ./.github/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,48 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
schedule: | ||
- cron: "30 6 * * 1" | ||
|
||
defaults: | ||
run: | ||
working-directory: 'ihmels.rpmfusion_repo' | ||
- cron: '0 5 * * 1' | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the codebase. | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'ihmels.rpmfusion_repo' | ||
|
||
- name: Set up Python 3. | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install test dependencies. | ||
run: pip3 install ansible ansible-lint[community,yamllint] | ||
- name: Run ansible-lint | ||
uses: ansible-community/ansible-lint-action@main | ||
|
||
- name: Lint code. | ||
run: | | ||
yamllint . | ||
ansible-lint . | ||
molecule: | ||
name: Molecule | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: | ||
- 'docker.io/geerlingguy/docker-fedora37-ansible:latest' | ||
- 'docker.io/geerlingguy/docker-fedora36-ansible:latest' | ||
- 'docker.io/geerlingguy/docker-rockylinux9-ansible:latest' | ||
- 'docker.io/geerlingguy/docker-rockylinux8-ansible:latest' | ||
- 'docker.io/geerlingguy/docker-centos8-ansible:latest' | ||
- 'docker.io/geerlingguy/docker-centos7-ansible:latest' | ||
- docker.io/geerlingguy/docker-fedora38-ansible:latest | ||
- docker.io/geerlingguy/docker-fedora37-ansible:latest | ||
- docker.io/geerlingguy/docker-rockylinux9-ansible:latest | ||
- docker.io/geerlingguy/docker-rockylinux8-ansible:latest | ||
- docker.io/geerlingguy/docker-centos8-ansible:latest | ||
- docker.io/geerlingguy/docker-centos7-ansible:latest | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Check out the codebase. | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'ihmels.rpmfusion_repo' | ||
|
||
- name: Set up Python 3. | ||
- name: Set up Python 3 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install test dependencies. | ||
run: pip3 install ansible molecule[docker] docker | ||
- name: Install test dependencies | ||
run: python -m pip install ansible-core molecule molecule-plugins[podman] | ||
|
||
- name: Run Molecule tests. | ||
- name: Run Molecule tests | ||
run: molecule test | ||
env: | ||
MOLECULE_IMAGE: ${{ matrix.image }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,5 @@ | ||
--- | ||
# Based on ansible-lint config | ||
extends: default | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
colons: | ||
max-spaces-after: -1 | ||
level: error | ||
commas: | ||
max-spaces-after: -1 | ||
level: error | ||
comments: disable | ||
comments-indentation: disable | ||
document-start: disable | ||
empty-lines: | ||
max: 3 | ||
level: error | ||
hyphens: | ||
level: error | ||
indentation: disable | ||
key-duplicates: enable | ||
line-length: disable | ||
new-line-at-end-of-file: disable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: disable | ||
truthy: disable |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
--- | ||
galaxy_info: | ||
role_name: rpmfusion_repo | ||
namespace: ihmels | ||
author: Yannick Ihmels <[email protected]> | ||
description: Install RPM Fusion repositories | ||
author: Yannick Ihmels | ||
description: Install and configure RPM Fusion repositories | ||
issue_tracker_url: https://github.com/ihmels/ansible-role-rpm-fusion/issues | ||
license: MIT | ||
min_ansible_version: '2.10' | ||
platforms: | ||
- name: Fedora | ||
versions: | ||
- '36' | ||
- '37' | ||
- '38' | ||
- name: EL | ||
versions: | ||
- '7' | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ansible>=2.10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
collections: | ||
- name: community.general |