-
-
Notifications
You must be signed in to change notification settings - Fork 491
41 lines (37 loc) · 1.01 KB
/
integration.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
---
name: Integration
# Controls when the action will run.
on:
schedule:
- cron: '0 23 * * *'
workflow_dispatch:
jobs:
generate-matrix:
name: Generate test matrix
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- name: Generate Test Matrix
id: set-matrix
shell: bash
run: "tests/github-test-matrix.sh"
test:
name: "Test ${{ matrix.role }}"
needs: generate-matrix
runs-on: ubuntu-latest
strategy:
matrix:
role: ${{ fromJson(needs.generate-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- name: Molecule Test
uses: gofrolist/molecule-action@dfbfd1af6a77523c8a937a1532f92808065a00a4
with:
molecule_options: --base-config ../../tests/molecule/base.yml
molecule_command: test
molecule_working_dir: ${{ matrix.role }}
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'