-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (82 loc) · 3.27 KB
/
main.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# SPDX-FileCopyrightText: Florian Wilhelm
# SPDX-License-Identifier: MIT
name: CI
on:
push:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
jobs:
deb:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
version:
["ubuntu:latest", "ubuntu:rolling", "ubuntu:devel", "debian:testing"]
steps:
- uses: actions/checkout@v4
- name: Build Test Container deb ${{ matrix.version }}
run: docker build --build-arg=VERSION=${{ matrix.version }} -t system-automation-test-deb-${{ matrix.version }} --file test/container/Containerfile.dpkg .
- name: Run Test deb ${{ matrix.version }}
run: docker run --user user --tty --volume $PWD:/mnt system-automation-test-deb-${{ matrix.version }}
yum:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
version: [latest, rawhide]
steps:
- uses: actions/checkout@v4
- name: Build Test Container Fedora ${{ matrix.version }}
run: docker build --build-arg=VERSION=${{ matrix.version }} -t system-automation-test-fedora-${{ matrix.version }} --file test/container/Containerfile.fedora .
- name: Run Test Fedora ${{ matrix.version }}
run: docker run --user user --tty --volume $PWD:/mnt system-automation-test-fedora-${{ matrix.version }}
el:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
# Remove "quay.io/centos/centos:stream9" for now as
# CS9 has no jdk-21 package despite it's available in EL9
# https://forums.centos.org/viewtopic.php?t=80650
version: ["almalinux:latest"]
steps:
- uses: actions/checkout@v4
- name: Build Test Container EL ${{ matrix.version }}
run: docker build --build-arg=VERSION=${{ matrix.version }} -t system-automation-test-el-${{ matrix.version }} --file test/container/Containerfile.el .
- name: Run Test EL ${{ matrix.version }}
run: docker run --user user --tty --volume $PWD:/mnt system-automation-test-el-${{ matrix.version }}
zypper:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build Test Container opensuse
run: docker build -t system-automation-test-opensuse --file test/container/Containerfile.opensuse .
- name: Run Test opensuse
run: docker run --user user --tty --volume $PWD:/mnt system-automation-test-opensuse
pacman:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build Test Container archlinux
run: docker build -t system-automation-test-archlinux --file test/container/Containerfile.archlinux .
- name: Run Test archlinux
run: docker run --user user --tty --volume $PWD:/mnt system-automation-test-archlinux
syntax-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: pip3 install ansible
- run: ansible-playbook -vvvv --inventory inventory --syntax-check desktop.yml
- run: ansible-playbook -vvvv --inventory inventory --syntax-check desktop.yml
formatting:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: pip install yapf
- run: ./format-files.sh
- run: git diff --name-only --exit-code