Skip to content

Commit 80937c5

Browse files
committed
ci: run no-dns and normal CI in parallel
1 parent 19298fb commit 80937c5

2 files changed

Lines changed: 35 additions & 18 deletions

File tree

.github/workflows/ci-no-dns.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: No-DNS
2+
3+
on:
4+
# Triggers when a PR is merged into main or a direct push occurs
5+
push:
6+
branches: [ "main" ]
7+
8+
# Triggers for any PR (and its subsequent commits) targeting the main branch
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
# Newest push wins: Prevents multiple runs from clashing and wasting runner efforts
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
18+
jobs:
19+
no-dns:
20+
name: LXC deploy and test
21+
uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@d39fe34c39cee6d760c3479325e8dc82b66a8928
22+
with:
23+
cmlxc_commands: |
24+
cmlxc init
25+
# single cmdeploy relay test
26+
cmlxc -v deploy-cmdeploy --source ./repo --ipv4-only --no-dns cm0
27+
cmlxc -v test-cmdeploy --no-dns cm0
28+
29+
# cross cmdeploy relay test
30+
cmlxc -v deploy-cmdeploy --source ./repo cm1
31+
cmlxc -v test-cmdeploy --no-dns cm0 cm1
32+
33+
# cross cmdeploy/madmail relay tests
34+
cmlxc -v deploy-madmail mad0
35+
cmlxc -v test-cmdeploy --no-dns cm0 mad0

.github/workflows/ci.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,3 @@ jobs:
7171
cmlxc -v test-cmdeploy cm0 mad0
7272
cmlxc -v test-mini cm0 mad0
7373
cmlxc -v test-mini mad0 cm0
74-
75-
no-dns:
76-
name: no-DNS LXC deploy and test
77-
uses: chatmail/cmlxc/.github/workflows/lxc-test.yml@d39fe34c39cee6d760c3479325e8dc82b66a8928
78-
with:
79-
cmlxc_commands: |
80-
cmlxc init
81-
# single cmdeploy relay test
82-
cmlxc -v deploy-cmdeploy --source ./repo --ipv4-only --no-dns cm0
83-
cmlxc -v test-cmdeploy --no-dns cm0
84-
85-
# cross cmdeploy relay test
86-
cmlxc -v deploy-cmdeploy --source ./repo cm1
87-
cmlxc -v test-cmdeploy --no-dns cm0 cm1
88-
89-
# cross cmdeploy/madmail relay tests
90-
cmlxc -v deploy-madmail mad0
91-
cmlxc -v test-cmdeploy --no-dns cm0 mad0

0 commit comments

Comments
 (0)