CI #883
This file contains hidden or 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-24.04${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: ["", "-arm"] #amd64 and arm | |
| version: [ | |
| "ubuntu:latest", | |
| "ubuntu:rolling", | |
| "ubuntu:devel", | |
| "debian:stable", | |
| "debian:testing", | |
| "debian:unstable", | |
| ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - run: dpkg --print-architecture | |
| - 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-24.04${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: ["", "-arm"] #amd64 and arm | |
| version: [latest, rawhide] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - 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-24.04${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: ["", "-arm"] #amd64 and arm | |
| version: ["almalinux:10"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - 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-24.04${{ matrix.runner }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: ["", "-arm"] #amd64 and arm | |
| version: ["leap:16.0", "tumbleweed"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build Test Container opensuse ${{ matrix.version }} | |
| run: docker build --build-arg=VERSION=${{ matrix.version }} -t system-automation-test-opensuse-${{ matrix.version }} --file test/container/Containerfile.opensuse . | |
| - name: Run Test opensuse ${{ matrix.version }} | |
| run: docker run --user user --tty --volume $PWD:/mnt system-automation-test-opensuse-${{ matrix.version }} | |
| pacman: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - 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-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| 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 | |
| # Check fails for unknown reasons, files are formatted locally | |
| # formatting: | |
| # runs-on: ubuntu-24.04 | |
| # steps: | |
| # - uses: actions/checkout@v6 | |
| # - run: pip install yapf | |
| # - run: ./format-files.sh | |
| # - run: git diff --name-only --exit-code |