-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.34 KB
/
roles.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
---
name: generate
on:
push:
jobs:
roles:
name: role
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- role: ansible-role-default
- role: ansible-role-preferences
- role: ansible-role-minimal
- role: ansible-role-version
- role: ansible-role-default
generate_config_file: generate_config_only_readme.yml
- role: ansible-role-default
generate_config_file: generate_config_no_tox.yml
- role: ansible-role-default
generate_config_file: generate_config_no_pre_commit.yml
- role: ansible-role-default
generate_config_file: generate_config_no_gitlab.yml
- role: ansible-role-default
generate_config_file: generate_config_no_github.yml
steps:
- name: checkout
uses: actions/checkout@v3
- run: |
pip install pre-commit
cd tests/${{ matrix.config.role }}
if [ -f "${{ matrix.config.generate_config_file }}" ]; then
echo "Testing generating files defined in ${{ matrix.config.generate_config_file }}."
../../generate.yml --extra-vars @${{ matrix.config.generate_config_file }}
else
echo "Testing generating all default files."
../../generate.yml
fi