Skip to content

Commit 8c13110

Browse files
Add Ansible tags tests with Molecule
Former-commit-id: 0944ea7
1 parent 260bf4f commit 8c13110

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,38 @@ jobs:
2020
- name: Molecule for Ansible
2121
uses: MonolithProjects/[email protected]
2222
env:
23-
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
23+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
24+
25+
test_install:
26+
runs-on: ubuntu-latest
27+
strategy:
28+
fail-fast: false
29+
steps:
30+
- name: checkout
31+
uses: actions/checkout@v2
32+
with:
33+
path: "${{ github.repository }}"
34+
- name: Molecule for Ansible
35+
uses: MonolithProjects/[email protected]
36+
env:
37+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
38+
with:
39+
molecule_command: converge
40+
converge_tags: install
41+
42+
test_uninstall:
43+
runs-on: ubuntu-latest
44+
strategy:
45+
fail-fast: false
46+
steps:
47+
- name: checkout
48+
uses: actions/checkout@v2
49+
with:
50+
path: "${{ github.repository }}"
51+
- name: Molecule for Ansible
52+
uses: MonolithProjects/[email protected]
53+
env:
54+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
55+
with:
56+
molecule_command: converge
57+
converge_tags: uninstall

0 commit comments

Comments
 (0)