-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmolecule.yml
47 lines (43 loc) · 1.04 KB
/
molecule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Molecule
# yamllint disable-line rule:truthy
on:
push:
pull_request:
schedule:
- cron: '29 21 * * 0'
jobs:
list-scenarios:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.listscenarios.outputs.scenarios }}
steps:
- uses: actions/checkout@v2
- id: listscenarios
uses: ome/action-ansible-molecule-list-scenarios@main
test:
name: Test
needs:
- list-scenarios
runs-on: ubuntu-18.04
strategy:
# Keep running so we can see if other tests pass
fail-fast: false
matrix:
scenario: ${{fromJson(needs.list-scenarios.outputs.matrix)}}
steps:
- uses: actions/checkout@v2
- uses: ome/action-ome-ansible-molecule@main
with:
scenario: ${{ matrix.scenario }}
publish:
name: Galaxy
if: startsWith(github.ref, 'refs/tags')
needs:
- test
runs-on: ubuntu-20.04
steps:
- name: galaxy
uses: ome/action-ansible-galaxy-publish@main
with:
galaxy-api-key: ${{ secrets.GALAXY_API_KEY }}