Skip to content

Commit 603f96f

Browse files
Molecule 3
1 parent bcd1549 commit 603f96f

File tree

3 files changed

+68
-12
lines changed

3 files changed

+68
-12
lines changed

.github/workflows/galaxy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Release to Ansible Galaxy
3+
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: galaxy
14+
uses: robertdebock/galaxy-action@1.0.1
15+
with:
16+
galaxy_api_key: ${{ secrets.galaxy_api_key }}

.github/workflows/main.yml

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,53 @@ on:
99
- cron: '0 4 * * 0'
1010

1111
jobs:
12-
test:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: checkout
16-
uses: actions/checkout@v2
17-
with:
18-
path: "${{ github.repository }}"
19-
- name: molecule
20-
uses: robertdebock/molecule-action@2.0.0
21-
with:
22-
image: ${{ matrix.image }}
23-
options: "--parallel all"
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v2
17+
- name: molecule
18+
uses: robertdebock/molecule-action@2.0.0
19+
with:
20+
entrypoint: /usr/local/bin/molecule
21+
args: lint
22+
test:
23+
needs:
24+
- lint
25+
runs-on: ubuntu-latest
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
config:
30+
- image: "debian"
31+
tag: "latest"
32+
- image: "debian"
33+
tag: "testing"
34+
- image: "debian"
35+
tag: "unstable"
36+
- image: "centos"
37+
tag: "7"
38+
- image: "centos"
39+
tag: "latest"
40+
- image: "fedora"
41+
tag: "30"
42+
- image: "fedora"
43+
tag: "latest"
44+
- image: "fedora"
45+
tag: "rawhide"
46+
- image: "opensuse"
47+
tag: "latest"
48+
- image: "ubuntu"
49+
tag: "latest"
50+
51+
steps:
52+
- name: checkout
53+
uses: actions/checkout@v2
54+
with:
55+
path: "${{ github.repository }}"
56+
- name: molecule
57+
uses: robertdebock/molecule-action@2.0.0
58+
with:
59+
image: ${{ matrix.config.image }}
60+
tag: ${{ matrix.config.tag }}
61+
options: "--parallel all"

molecule/default/molecule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@ provisioner:
5353
defaults:
5454
stdout_callback: yaml
5555
bin_ansible_callbacks: true
56+
verifier:
57+
name: ansible
5658
scenario:
5759
name: default

0 commit comments

Comments
 (0)