-
Notifications
You must be signed in to change notification settings - Fork 18
40 lines (36 loc) · 1.01 KB
/
integration-tests.yml
File metadata and controls
40 lines (36 loc) · 1.01 KB
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
---
# yamllint disable rule:line-length
name: Integration tests
on: # yamllint disable-line rule:truthy
pull_request:
# run them regularly, to catch changes in operating systems
schedule:
- cron: 0 4 * * MON
jobs:
ubuntu:
strategy:
matrix:
release:
- ubuntu-22.04
- ubuntu-24.04
runs-on: '${{ matrix.release }}'
timeout-minutes: 30
steps:
- name: Clone repository
uses: actions/checkout@v6
- name: Install Ansible
run: |
sudo apt update
sudo apt install -y ansible
- name: Install dependencies
run: |
set -euo pipefail
for ff in meta/collection-requirements.yml tests/collection-requirements.yml; do
if [ -f "$ff" ]; then
sudo ansible-galaxy collection install -vv -r "$ff"
fi
done
- name: Run test playbooks
run: |
cd tests
sudo ansible-playbook -vv --connection=local --inventory localhost, tests_*.yml