-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (48 loc) · 1.55 KB
/
ansible-integration.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
---
name: Integration Test
on:
push:
branches:
- main
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: ansible_collections/infra/quay_configuration
- name: Set access rights to Quay configuration file
run: |
chmod 777 quay-config
chmod 666 quay-config/config.yaml
working-directory: ./ansible_collections/infra/quay_configuration/tests
- name: Deploy Quay
run: docker-compose up -d
working-directory: ./ansible_collections/infra/quay_configuration/tests
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install required packages
run: pip install -Iv ansible
- uses: ifaxity/wait-on-action@v1
with:
resource: http://localhost:8080
log: true
interval: 5000
timeout: 300000
- name: Run integration test
run: >
ansible-test integration -v --color --continue-on-error --diff
--requirements --coverage
working-directory: ./ansible_collections/infra/quay_configuration
- name: Generate coverage report
run: >
ansible-test coverage xml -v --requirements --group-by command
--group-by version
working-directory: ./ansible_collections/infra/quay_configuration
# See the repots at https://codecov.io/gh/infra/quay_configuration
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
...