CI #704
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |