Skip to content

Different runner for the test workflows #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-18.04
steps:
- name: galaxy
uses: robertdebock/galaxy-action@1.0.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
types: [opened, synchronize, reopened]
jobs:
lint:
runs-on: ubuntu-20.04
runs-on: ubuntu-18.04
strategy:
fail-fast: true
steps:
Expand All @@ -20,6 +20,6 @@ jobs:
with:
path: "${{ github.repository }}"
- name: Molecule for Ansible - lint
uses: MonolithProjects/action-molecule@v1.4.1
uses: MonolithProjects/action-molecule@v1.4.3
with:
molecule_command: lint
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
repo:
name: Test Repo Runner
runs-on: ubuntu-20.04
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
Expand All @@ -35,7 +35,7 @@ jobs:
with:
path: "${{ github.repository }}"
- name: Molecule for Ansible - GHR Repository
uses: MonolithProjects/action-molecule@v1.4.2
uses: MonolithProjects/action-molecule@v1.4.3
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
Expand All @@ -46,7 +46,7 @@ jobs:

org:
name: Test Org Runner
runs-on: ubuntu-20.04
runs-on: ubuntu-18.04
strategy:
fail-fast: false
steps:
Expand All @@ -55,7 +55,7 @@ jobs:
with:
path: "${{ github.repository }}"
- name: Molecule for Ansible - GHR Organization
uses: MonolithProjects/action-molecule@v1.4.2
uses: MonolithProjects/action-molecule@v1.4.3
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Galaxy Quality](https://img.shields.io/ansible/quality/47375?style=flat&logo=ansible)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
[![Role version](https://img.shields.io/github/v/release/MonolithProjects/ansible-github_actions_runner)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
[![Role downloads](https://img.shields.io/ansible/role/d/47375)](https://galaxy.ansible.com/monolithprojects/github_actions_runner)
[![GitHub Actions](https://github.com/MonolithProjects/ansible-github_actions_runner/workflows/molecule%20test/badge.svg?branch=main)](https://github.com/MonolithProjects/ansible-github_actions_runner/actions)
[![GitHub Actions](https://github.com/MonolithProjects/ansible-github_actions_runner/workflows/molecule%20test/badge.svg?branch=master)](https://github.com/MonolithProjects/ansible-github_actions_runner/actions)
[![License](https://img.shields.io/github/license/MonolithProjects/ansible-github_actions_runner)](https://github.com/MonolithProjects/ansible-github_actions_runner/blob/main/LICENSE)


Expand Down Expand Up @@ -36,8 +36,8 @@ Personal Access Token for GitHub account can be created [here](https://github.co

* CentOS/RHEL 7,8
* Debian 9,10
* Fedora 32,33
* Ubuntu 16,18,20
* Fedora 34
* Ubuntu 18,20

**Note:** Fedora 32+ and Ubuntu 20 must use Ansible 2.9.8+. Other distros/releases will work also with older 2.8.0+ Ansible.

Expand Down
7 changes: 5 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
provisioner:
name: ansible
config_options:
defaults:
verbosity: 0
playbooks:
converge: converge.yml
cleanup: cleanup.yml
Expand All @@ -13,8 +16,8 @@ lint: |
driver:
name: docker
platforms:
- name: "${os:-ubuntu16}-${tag:-latest}"
image: "${namespace:-monolithprojects}/systemd-${os:-ubuntu16}:${tag:-latest}"
- name: "${os:-ubuntu20}-${tag:-latest}"
image: "${namespace:-monolithprojects}/systemd-${os:-ubuntu20}:${tag:-latest}"
command: /sbin/init
tmpfs:
- /run
Expand Down