Skip to content

Commit a5d0d67

Browse files
Merge pull request #33 from MonolithProjects/develop
Better tests
2 parents ce28dd6 + 43762f4 commit a5d0d67

File tree

4 files changed

+51
-38
lines changed

4 files changed

+51
-38
lines changed

.ansible-lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
skip_list:
2+
- '106'

.github/workflows/lifecycle.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: molecule converge tag install/uninstall
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- feature/*
8+
schedule:
9+
- cron: '0 6 * * 0'
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
steps:
16+
- name: checkout
17+
uses: actions/checkout@v2
18+
with:
19+
path: "${{ github.repository }}"
20+
- name: Molecule for Ansible - lint
21+
uses: MonolithProjects/[email protected]
22+
with:
23+
molecule_command: lint
24+
25+
test_lifecycle:
26+
runs-on: ubuntu-latest
27+
needs: lint
28+
strategy:
29+
fail-fast: false
30+
steps:
31+
- name: checkout
32+
uses: actions/checkout@v2
33+
with:
34+
path: "${{ github.repository }}"
35+
- name: Molecule for Ansible - converge Default
36+
uses: MonolithProjects/[email protected]
37+
env:
38+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
39+
with:
40+
molecule_command: converge
41+
- name: Molecule for Ansible - converge tag uninstall
42+
uses: MonolithProjects/[email protected]
43+
env:
44+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
45+
with:
46+
molecule_command: converge
47+
converge_tags: uninstall

.github/workflows/main.yml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- develop
8-
- feature/*
97
schedule:
108
- cron: '0 6 * * 0'
119
jobs:
@@ -21,39 +19,4 @@ jobs:
2119
- name: Molecule for Ansible
2220
uses: MonolithProjects/[email protected]
2321
env:
24-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
25-
26-
test_install:
27-
runs-on: ubuntu-latest
28-
needs: test
29-
strategy:
30-
fail-fast: false
31-
steps:
32-
- name: checkout
33-
uses: actions/checkout@v2
34-
with:
35-
path: "${{ github.repository }}"
36-
- name: Molecule for Ansible
37-
uses: MonolithProjects/[email protected]
38-
env:
39-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
40-
with:
41-
molecule_command: converge
42-
43-
test_uninstall:
44-
runs-on: ubuntu-latest
45-
needs: test_install
46-
strategy:
47-
fail-fast: false
48-
steps:
49-
- name: checkout
50-
uses: actions/checkout@v2
51-
with:
52-
path: "${{ github.repository }}"
53-
- name: Molecule for Ansible
54-
uses: MonolithProjects/[email protected]
55-
env:
56-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
57-
with:
58-
molecule_command: converge
59-
converge_tags: uninstall
22+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

tasks/install_runner.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
src: "./actions-runner-linux-{{ runner_version }}.tar.gz"
5151
dest: "{{ runner_dir }}/"
5252
owner: "{{ runner_user }}"
53+
mode: 0755
5354
tags:
5455
- install
5556

0 commit comments

Comments
 (0)