-
-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (32 loc) 路 850 Bytes
/
test.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
name: Ansible Playbook Test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Test on ${{ matrix.container }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# List of Docker images to test against.
container:
- 'fedora:40'
- 'fedora:39'
- 'fedora:38'
steps:
- uses: actions/checkout@v3
- name: "Run playbook on ${{ matrix.container }}"
uses: addnab/docker-run-action@v3
with:
image: "${{ matrix.container }}"
options: -v ${{ github.workspace }}:/work --privileged # This might be necessary for some Docker operations.
run: |
dnf install -y ansible curl git-all rsync flatpak
cd /work
./install --check --diff -vv