Skip to content

Commit 06e0222

Browse files
Merge pull request #66 from MonolithProjects/develop
Better automated tests
2 parents ec2d44c + 7ed3caf commit 06e0222

33 files changed

+312
-398
lines changed

.github/workflows/galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
release:
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-20.04
1212
steps:
1313
- name: galaxy
1414
uses: robertdebock/[email protected]

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
types: [opened, synchronize, reopened]
1212
jobs:
1313
lint:
14-
runs-on: ubuntu-18.04
14+
runs-on: ubuntu-20.04
1515
strategy:
1616
fail-fast: true
1717
steps:
@@ -20,6 +20,6 @@ jobs:
2020
with:
2121
path: "${{ github.repository }}"
2222
- name: Molecule for Ansible - lint
23-
uses: MonolithProjects/[email protected].0
23+
uses: MonolithProjects/[email protected].1
2424
with:
2525
molecule_command: lint

.github/workflows/main.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,61 @@ name: molecule test
33
on:
44
pull_request:
55
branches:
6-
- master
6+
- main
77
types: [opened, synchronize, reopened]
88
schedule:
99
- cron: '0 6 * * 0'
1010
jobs:
1111
repo:
1212
name: Test Repo Runner
13-
runs-on: ubuntu-18.04
13+
runs-on: ubuntu-20.04
1414
strategy:
15-
fail-fast: true
15+
fail-fast: false
16+
matrix:
17+
config:
18+
- os: "centos7"
19+
tag: "latest"
20+
- os: "centos8"
21+
tag: "latest"
22+
- os: "debian9"
23+
tag: "latest"
24+
- os: "debian10"
25+
tag: "latest"
26+
- os: "fedora33"
27+
tag: "latest"
28+
- os: "ubuntu18"
29+
tag: "latest"
30+
- os: "ubuntu20"
31+
tag: "latest"
1632
steps:
1733
- name: checkout
1834
uses: actions/checkout@v2
1935
with:
2036
path: "${{ github.repository }}"
2137
- name: Molecule for Ansible - GHR Repository
22-
uses: MonolithProjects/[email protected].0
38+
uses: MonolithProjects/[email protected].1
2339
env:
2440
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2541
with:
42+
os: ${{ matrix.config.os }}
43+
tag: ${{ matrix.config.tag }}
2644
molecule_command: test
45+
scenario: repo
46+
2747
org:
2848
name: Test Org Runner
29-
runs-on: ubuntu-18.04
49+
runs-on: ubuntu-20.04
3050
strategy:
31-
fail-fast: true
51+
fail-fast: false
3252
steps:
3353
- name: checkout
3454
uses: actions/checkout@v2
3555
with:
3656
path: "${{ github.repository }}"
3757
- name: Molecule for Ansible - GHR Organization
38-
uses: MonolithProjects/[email protected].0
58+
uses: MonolithProjects/[email protected].1
3959
env:
4060
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
4161
with:
4262
molecule_command: test
43-
scenario: organization
63+
scenario: org

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ cd ansible-github_actions_runner
3131
molecule test
3232
```
3333

34+
> You will need to edit the files in `molecule/default` directory (please do not commit those changes)
35+
3436
## 5. Create a pull request
3537

3638
Please create a pull request into the `develop` branch. Here is [how to do it](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork).
3739

38-
3940
Please consider to [sponsor](https://github.com/sponsors/monolithprojects) me :-)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Personal Access Token for GitHub account can be created [here](https://github.co
3232

3333
* ARM, ARM64 (dependencies installation is not covered by this role)
3434
* AMD64, x86_64
35-
## Weekly tested on:
35+
## Tested on:
3636

3737
* CentOS/RHEL 7,8
3838
* Debian 9,10
@@ -82,7 +82,7 @@ runner_org: no
8282
# Name to assign to this runner in GitHub (System hostname as default)
8383
runner_name: "{{ ansible_hostname }}"
8484

85-
# Labels to apply to the runner
85+
# Labels to apply to the runner. For examle "'label1','label2'"
8686
runner_labels: "''"
8787

8888
# Custom service name when usign Github Enterprise server

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ runner_org: no
3535
# Name to assign to this runner in GitHub (System hostname as default)
3636
runner_name: "{{ ansible_hostname }}"
3737

38-
# Labels to apply to the runner
38+
# Labels to apply to the runner. For examle "'label1','label2'"
3939
runner_labels: "''"
4040

4141
# Custom service name when usign Github Enterprise server

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# handlers file for ansible-github_actions_runner
2+
# handlers file for ansible-github_actions_runner (currently not used)
33
- name: Restart runner service
44
service:
55
name: "{{ runner_service }}"

molecule/default/Dockerfile.j2

Lines changed: 0 additions & 31 deletions
This file was deleted.

molecule/default/INSTALL.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.

molecule/default/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
vars:
77
- runner_user: ansible
88
- github_repo: ansible-github_actions_runner-testrepo
9-
- github_account: monolithprojects
9+
- github_account: monolithprojects-testorg
1010
- runner_state: absent
1111
roles:
1212
- ansible-github_actions_runner

0 commit comments

Comments
 (0)