113 lines
2.5 KiB
Django/Jinja
113 lines
2.5 KiB
Django/Jinja
---
|
|
{{ ansible_managed | comment }}
|
|
|
|
name: GitHub Action
|
|
|
|
on:
|
|
- push
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
image:
|
|
{% for platform in meta.galaxy_info.platforms %}
|
|
{% if platform.name == "Amazon" %}
|
|
- amazonlinux
|
|
{% elif platform.name == "EL" %}
|
|
- centos
|
|
{% else %}
|
|
- {{ platform.name | lower }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
tag:
|
|
- 1
|
|
- 7
|
|
- edge
|
|
- latest
|
|
- rawhide
|
|
- unstable
|
|
exclude:
|
|
- image: alpine
|
|
tag: 1
|
|
- image: alpine
|
|
tag: 7
|
|
- image: alpine
|
|
tag: rawhide
|
|
- image: alpine
|
|
tag: unstable
|
|
- image: amazonlinux
|
|
tag: 7
|
|
- image: amazonlinux
|
|
tag: edge
|
|
- image: amazonlinux
|
|
tag: rawhide
|
|
- image: amazonlinux
|
|
tag: unstable
|
|
- image: debian
|
|
tag: 1
|
|
- image: debian
|
|
tag: 7
|
|
- image: debian
|
|
tag: edge
|
|
- image: debian
|
|
tag: rawhide
|
|
- image: centos
|
|
tag: 1
|
|
- image: centos
|
|
tag: edge
|
|
- image: centos
|
|
tag: rawhide
|
|
- image: centos
|
|
tag: unstable
|
|
- image: fedora
|
|
tag: 1
|
|
- image: fedora
|
|
tag: 7
|
|
- image: fedora
|
|
tag: edge
|
|
- image: fedora
|
|
tag: unstable
|
|
- image: opensuse
|
|
tag: 1
|
|
- image: opensuse
|
|
tag: 7
|
|
- image: opensuse
|
|
tag: edge
|
|
- image: opensuse
|
|
tag: rawhide
|
|
- image: opensuse
|
|
tag: unstable
|
|
- image: ubuntu
|
|
tag: 1
|
|
- image: ubuntu
|
|
tag: 7
|
|
- image: ubuntu
|
|
tag: edge
|
|
- image: ubuntu
|
|
tag: rawhide
|
|
- image: ubuntu
|
|
tag: unstable
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: {% raw %}"${{ github.repository }}"{% endraw %}
|
|
|
|
- name: molecule
|
|
uses: robertdebock/molecule-action@1.1.1
|
|
with:
|
|
image: {% raw %}${{ matrix.image }}{% endraw %}
|
|
|
|
options: parallel
|
|
release:
|
|
needs:
|
|
- test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: galaxy
|
|
uses: robertdebock/galaxy-action@1.0.0
|
|
with:
|
|
galaxy_api_key: {% raw %}${{ secrets.galaxy_api_key }}{% endraw %}
|