-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (64 loc) · 1.79 KB
/
test.yaml
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
68
69
70
71
72
73
74
75
76
77
---
name: test
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
env:
HERE: "./ansible_collections/delinea/core"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-latest
name: ansible-${{ matrix.ansible }}
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
ansible:
- stable-2.14
- stable-2.15
- stable-2.16
- devel
steps:
- name: Pull
uses: actions/checkout@v3
with:
path: ${{ env.HERE }}
- name: Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Aqua
uses: aquaproj/aqua-installer@294926f94b4233f202a2f03875c604f840cfed70 # v2.1.1
continue-on-error: true
with:
aqua_version: v2.21.3
enable_aqua_install: true
aqua_opts: "--tags installfirst"
working-directory: ${{ env.HERE }}
- name: update-github-path-with-aqua
working-directory: ${{ env.HERE }}
run: |
echo "${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin/aqua" >> $GITHUB_PATH
- name: aqua-install-tooling
working-directory: ${{ env.HERE }}
run: |
aqua install --tags installfirst
aqua install --tags tests
- name: Init
working-directory: ${{ env.HERE }}
run: mage initCI ${{ matrix.ansible }}
- name: Unit
working-directory: ${{ env.HERE }}
run: mage testUnit
- name: Sanity
working-directory: ${{ env.HERE }}
run: mage testSanity
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
working-directory: ${{ env.HERE }}