-
-
Notifications
You must be signed in to change notification settings - Fork 58
73 lines (70 loc) · 1.62 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
name: Ansible Molecule
on: # yamllint disable-line rule:truthy
push:
tags_ignore:
- '*'
paths-ignore:
- 'README.md'
pull_request:
branches:
- main
schedule:
- cron: '15 8 8 * *'
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: Run ansible-lint
uses: ansible/ansible-lint@v6
test:
needs:
- lint
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
scenario:
- default
distros:
- debian11
- debian12
- fedora35
- fedora36
- ubuntu2004
- ubuntu2204
releases:
- stable
- beta
versions:
- "1.67.0"
- ""
steps:
- name: checkout
uses: actions/checkout@v4
with:
path: "${{ github.repository }}"
- name: Workaround Git Security Warning
run: |
# Workaround a bug in github actions:
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: molecule
uses: robertdebock/[email protected]
env:
MOLECULE_DISTRO: "${{ matrix.distros }}"
TEST_RELEASE: "${{ matrix.releases }}"
TEST_VERSION: "${{ matrix.versions }}"
with:
scenario: ${{ matrix.scenario }}
release:
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Release to ansible galaxy
uses: robertdebock/[email protected]
with:
galaxy_api_key: ${{ secrets.galaxy_api_key }}
git_branch: main