-
-
Notifications
You must be signed in to change notification settings - Fork 58
125 lines (122 loc) · 3.16 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
---
name: Ansible Molecule
on: # yamllint disable-line rule:truthy
push:
paths-ignore:
- 'README.md'
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
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
- fedora39
- fedora40
- ubuntu2204
- ubuntu2404
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 check
uses: robertdebock/[email protected]
env:
MOLECULE_DISTRO: "${{ matrix.distros }}"
TEST_RELEASE: "${{ matrix.releases }}"
TEST_VERSION: "${{ matrix.versions }}"
with:
scenario: ${{ matrix.scenario }}
command: check
- name: molecule
uses: robertdebock/[email protected]
env:
MOLECULE_DISTRO: "${{ matrix.distros }}"
TEST_RELEASE: "${{ matrix.releases }}"
TEST_VERSION: "${{ matrix.versions }}"
with:
scenario: ${{ matrix.scenario }}
test-archlinux:
needs:
- lint
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
scenario:
- default
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 check
uses: robertdebock/[email protected]
env:
MOLECULE_DISTRO: "${{ matrix.distros }}"
TEST_RELEASE: "${{ matrix.releases }}"
TEST_VERSION: "${{ matrix.versions }}"
with:
scenario: ${{ matrix.scenario }}
command: check
- name: molecule
uses: robertdebock/[email protected]
env:
TEST_RELEASE: "${{ matrix.releases }}"
TEST_VERSION: "${{ matrix.versions }}"
MOLECULE_PLATFORM_NAME: rclone-archlinux
with:
scenario: ${{ matrix.scenario }}
release:
if: github.ref == 'refs/heads/main'
needs:
- test
- test-archlinux
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