forked from lablabs/ansible-role-rke2
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.35 KB
/
main.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
name: molecule test
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
schedule:
- cron: '0 1 1 * *'
workflow_dispatch:
jobs:
standalone:
name: Test RKE2 Ansible Role - standalone
runs-on: ubuntu-20.04
strategy:
fail-fast: false
max-parallel: 1
matrix:
config:
- image: "rockylinux8"
tag: "latest"
- image: "ubuntu2004"
tag: "latest"
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: "${{ github.repository }}"
- name: Molecule for Ansible
uses: robertdebock/[email protected]
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
cluster:
name: Test RKE2 Ansible Role - cluster
runs-on: ubuntu-20.04
needs: standalone
strategy:
fail-fast: false
max-parallel: 1
matrix:
config:
- image: "ubuntu2004"
tag: "latest"
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: "${{ github.repository }}"
- name: Molecule for Ansible
uses: robertdebock/[email protected]
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
scenario: cluster