Skip to content

Commit 29536a9

Browse files
committed
Add GitHub Actions
1 parent c9b6b00 commit 29536a9

6 files changed

Lines changed: 138 additions & 1 deletion

File tree

.ansible-lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#
22
# Ansible managed
33
#
4+
exclude_paths:
5+
- ./meta/preferences.yml

.github/workflows/ansible.yml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
#
3+
# Ansible managed
4+
#
5+
6+
name: Ansible Molecule
7+
8+
on:
9+
push:
10+
tags_ignore:
11+
- '*'
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: checkout
18+
uses: actions/checkout@v2
19+
- name: molecule
20+
uses: robertdebock/molecule-action@1.1.1
21+
with:
22+
image: ${{ matrix.image }}
23+
entrypoint: /usr/local/bin/molecule
24+
args: lint
25+
test:
26+
needs:
27+
- lint
28+
runs-on: ubuntu-latest
29+
strategy:
30+
matrix:
31+
image:
32+
- amazonlinux
33+
- centos
34+
tag:
35+
- 1
36+
- 7
37+
- edge
38+
- latest
39+
- rawhide
40+
- unstable
41+
exclude:
42+
- image: alpine
43+
tag: 1
44+
- image: alpine
45+
tag: 7
46+
- image: alpine
47+
tag: rawhide
48+
- image: alpine
49+
tag: unstable
50+
- image: amazonlinux
51+
tag: 7
52+
- image: amazonlinux
53+
tag: edge
54+
- image: amazonlinux
55+
tag: rawhide
56+
- image: amazonlinux
57+
tag: unstable
58+
- image: debian
59+
tag: 1
60+
- image: debian
61+
tag: 7
62+
- image: debian
63+
tag: edge
64+
- image: debian
65+
tag: rawhide
66+
- image: centos
67+
tag: 1
68+
- image: centos
69+
tag: edge
70+
- image: centos
71+
tag: rawhide
72+
- image: centos
73+
tag: unstable
74+
- image: fedora
75+
tag: 1
76+
- image: fedora
77+
tag: 7
78+
- image: fedora
79+
tag: edge
80+
- image: fedora
81+
tag: unstable
82+
- image: opensuse
83+
tag: 1
84+
- image: opensuse
85+
tag: 7
86+
- image: opensuse
87+
tag: edge
88+
- image: opensuse
89+
tag: rawhide
90+
- image: opensuse
91+
tag: unstable
92+
- image: ubuntu
93+
tag: 1
94+
- image: ubuntu
95+
tag: 7
96+
- image: ubuntu
97+
tag: edge
98+
- image: ubuntu
99+
tag: rawhide
100+
- image: ubuntu
101+
tag: unstable
102+
steps:
103+
- name: checkout
104+
uses: actions/checkout@v2
105+
with:
106+
path: "${{ github.repository }}"
107+
- name: molecule
108+
uses: robertdebock/molecule-action@1.1.1
109+
with:
110+
image: ${{ matrix.image }}
111+
options: "--parallel all"

.github/workflows/galaxy.yml

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright 2019 Robert de Bock (robert@meinit.nl)
190+
Copyright 2020 Robert de Bock (robert@meinit.nl)
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ epel
44
<img src="https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png" width="10%" height="10%" alt="Ansible logo" align="right"/>
55
<a href="https://travis-ci.org/robertdebock/ansible-role-epel"> <img src="https://travis-ci.org/robertdebock/ansible-role-epel.svg?branch=master" alt="Build status"/></a> <img src="https://img.shields.io/ansible/role/d/21643"/> <img src="https://img.shields.io/ansible/quality/21643"/>
66

7+
<a href="https://github.com/robertdebock/ansible-role-epel/actions"><img src="https://github.com/robertdebock/ansible-role-epel/workflows/GitHub%20Action/badge.svg"/></a>
8+
79
Install epel on your system.
810

911
Example Playbook

meta/preferences.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
tox_parallel: yes

0 commit comments

Comments
 (0)