-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (62 loc) · 1.43 KB
/
ci.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
---
name: ci
on:
pull_request:
push:
branches:
- master
schedule:
- cron: "0 7 * * 0"
defaults:
run:
working-directory: ansible-theo-agent
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: ansible-theo-agent
- name: Super-Linter
uses: github/super-linter@v3
env:
VALIDATE_ANSIBLE: true
ANSIBLE_DIRECTORY: /
VALIDATE_YAML: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
molecule:
name: Molecule
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distro:
- centos7
- centos8
- debian9
- debian10
- ubuntu1604
- ubuntu1804
- ubuntu2004
- fedora31
- fedora32
- fedora33
include:
- distro: ubuntu1404
registry: theoapp
steps:
- name: checkout
uses: actions/checkout@v2
with:
path: ansible-theo-agent
- name: Setup Python
uses: actions/setup-python@v2
- name: Install test dependencies
run: pip3 install ansible molecule[docker] testinfra ansible-lint==4.3.7 yamllint
- name: Run molecule tests
run: molecule test --all
env:
MOLECULE_DISTRO: ${{ matrix.distro }}
REGISTRY_USER: ${{ matrix.registry }}