From a69cbfcd26ea932326d55ed0e0144ba881288b75 Mon Sep 17 00:00:00 2001 From: missytake Date: Tue, 21 Apr 2026 23:01:04 +0200 Subject: [PATCH] ci: run no-dns and normal CI in parallel --- .github/workflows/ci-no-dns.yaml | 35 ++++++++++++++++++++++++++++++++ .github/workflows/ci.yaml | 18 ---------------- 2 files changed, 35 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/ci-no-dns.yaml diff --git a/.github/workflows/ci-no-dns.yaml b/.github/workflows/ci-no-dns.yaml new file mode 100644 index 00000000..1ffcf998 --- /dev/null +++ b/.github/workflows/ci-no-dns.yaml @@ -0,0 +1,35 @@ +name: No-DNS + +on: + # Triggers when a PR is merged into main or a direct push occurs + push: + branches: [ "main" ] + + # Triggers for any PR (and its subsequent commits) targeting the main branch + pull_request: + branches: [ "main" ] + +# Newest push wins: Prevents multiple runs from clashing and wasting runner efforts +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + + +jobs: + no-dns: + name: LXC deploy and test + uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@d39fe34c39cee6d760c3479325e8dc82b66a8928 + with: + cmlxc_commands: | + cmlxc init + # single cmdeploy relay test + cmlxc -v deploy-cmdeploy --source ./repo --ipv4-only --no-dns cm0 + cmlxc -v test-cmdeploy --no-dns cm0 + + # cross cmdeploy relay test + cmlxc -v deploy-cmdeploy --source ./repo cm1 + cmlxc -v test-cmdeploy --no-dns cm0 cm1 + + # cross cmdeploy/madmail relay tests + cmlxc -v deploy-madmail mad0 + cmlxc -v test-cmdeploy --no-dns cm0 mad0 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6735c05f..82c37862 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -75,21 +75,3 @@ jobs: cmlxc -v test-cmdeploy cm0 mad0 cmlxc -v test-mini cm0 mad0 cmlxc -v test-mini mad0 cm0 - - no-dns: - name: no-DNS LXC deploy and test - uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@d39fe34c39cee6d760c3479325e8dc82b66a8928 - with: - cmlxc_commands: | - cmlxc init - # single cmdeploy relay test - cmlxc -v deploy-cmdeploy --source ./repo --ipv4-only --no-dns cm0 - cmlxc -v test-cmdeploy --no-dns cm0 - - # cross cmdeploy relay test - cmlxc -v deploy-cmdeploy --source ./repo cm1 - cmlxc -v test-cmdeploy --no-dns cm0 cm1 - - # cross cmdeploy/madmail relay tests - cmlxc -v deploy-madmail mad0 - cmlxc -v test-cmdeploy --no-dns cm0 mad0