make reuse happy #600
Workflow file for this run
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] | |
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: | |
version: ["quay.io/centos/centos:stream9", "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@v4 | |
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 |