generated from trfore/ansible-role
-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (54 loc) · 1.41 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
name: CI
on:
pull_request:
branches: ["*"]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:
concurrency:
group: ${{ github.workflow}}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
format:
uses: trfore/ansible-role/.github/workflows/format.yml@main
lint:
needs:
- format
uses: trfore/ansible-role/.github/workflows/lint_ansible.yml@main
test:
needs:
- format
- lint
strategy:
fail-fast: false
matrix:
distro: [debian10, ubuntu2004] # limited to MongoDB 4 matrix
experimental: [false]
molecule_scenario: ["-s default"]
include:
- distro: ubuntu2004
experimental: true
molecule_scenario: "-s ubuntu-jre8"
- distro: centos8
experimental: true
molecule_scenario: "-s default"
uses: ./.github/workflows/test.yml
with:
distro: ${{ matrix.distro }}
experimental: ${{ matrix.experimental }}
molecule_scenario: ${{ matrix.molecule_scenario }}
requirements_file: "requirements/dev-requirements.txt"
check:
needs:
- format
- lint
- test
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.format.result }}',
'${{ needs.lint.result }}',
'${{ needs.test.result }}',
]) == {'success'}"