-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (42 loc) · 1.09 KB
/
general.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
---
name: general
"on":
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linting:
runs-on: ubuntu-latest
if: github.repository_owner == 'rolehippie'
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Role linting
uses: actionhippie/ansible-later@v1
testing:
runs-on: ubuntu-latest
if: github.repository_owner == 'rolehippie'
strategy:
fail-fast: false
matrix:
scenario:
- default
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: pip3 install docker pytest-testinfra ansible molecule molecule-plugins[docker]
- name: Molecule tests
run: molecule test --scenario-name ${{ matrix.scenario }}
env:
PY_COLORS: "1"
ANSIBLE_FORCE_COLOR: "1"
...