From 7ad43c14fea52de5226a47fbdc5eaba6796bd41e Mon Sep 17 00:00:00 2001 From: Jo Zzsi Date: Sat, 2 Nov 2024 16:09:17 -0400 Subject: [PATCH] ci: extended integration tests Allow the test to run manually. It also scheduled to runs once a day. --- .github/workflows/integration-extra.yml | 54 +++++++++++++++++++++++++ .github/workflows/integration.yml | 3 ++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/integration-extra.yml diff --git a/.github/workflows/integration-extra.yml b/.github/workflows/integration-extra.yml new file mode 100644 index 000000000..0fec7d415 --- /dev/null +++ b/.github/workflows/integration-extra.yml @@ -0,0 +1,54 @@ +name: Integration Test (extra) + +on: + schedule: + - cron: '30 23 * * *' # every day at 23:30 UTC + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + basic: + # run this test on all containers + name: ${{ matrix.test }} on ${{ matrix.container }} + runs-on: ubuntu-latest + timeout-minutes: 10 + concurrency: + group: basic-${{ github.workflow }}-${{ github.ref }}-${{ matrix.container }}-${{ matrix.test }} + cancel-in-progress: true + strategy: + fail-fast: false + matrix: + container: [ + "alpine:edge", + "centos:stream10-development", + "fedora:rawhide", + "debian:sid", + "ubuntu:rolling", + ] + test: [ + "10", + "11", + "12", + "20", + "21", + "22", + "23", + "24", + "25", + "26", + "30", + "40", + "41", + "42", + "80", + "81", + ] + container: + image: ghcr.io/dracut-ng/${{ matrix.container }} + options: '--device=/dev/kvm --privileged' + steps: + - name: "Checkout Repository" + uses: actions/checkout@v4 + - name: "${{ matrix.container }} TEST-${{ matrix.test }}" + run: ./test/test-github.sh "TEST-${{ matrix.test }}" ${{ matrix.test }} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 7966c6a00..9dfe8fa0e 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -8,6 +8,9 @@ on: - 'doc_site/**' - 'man/**' + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + env: # set V to 2 when re-running jobs with debug logging enabled # see https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/troubleshooting-workflows/enabling-debug-logging