Skip to content

Commit 7567f97

Browse files
authored
Merge pull request moby#50937 from vvoland/gha-vm
gha: extract vm test to a separate workflow
2 parents 8849871 + bdd0a2a commit 7567f97

File tree

2 files changed

+46
-19
lines changed

2 files changed

+46
-19
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -208,22 +208,3 @@ jobs:
208208
targets: binary-smoketest
209209
set: |
210210
*.platform=${{ matrix.platform }}
211-
212-
vm:
213-
needs:
214-
- validate-dco
215-
uses: ./.github/workflows/.vm.yml
216-
strategy:
217-
fail-fast: false
218-
matrix:
219-
template:
220-
# EL 8 is used for running the tests with cgroup v1.
221-
# Do not upgrade this to EL 9 until formally deprecating the cgroup v1 support.
222-
#
223-
# FIXME: use almalinux-8, then probably no need to keep oraclelinux-8 here.
224-
# On almalinux-8, port forwarding tests are failing:
225-
# https://github.com/moby/moby/pull/49819#issuecomment-2815676000
226-
- template://oraclelinux-8 # Oracle's kernel 5.15
227-
# - template://almalinux-8 # kernel 4.18
228-
with:
229-
template: ${{ matrix.template }}

.github/workflows/vm.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: vm
2+
3+
# Default to 'contents: read', which grants actions to read commits.
4+
#
5+
# If any permission is set, any permission not included in the list is
6+
# implicitly set to "none".
7+
#
8+
# see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
on:
17+
workflow_dispatch:
18+
push:
19+
branches:
20+
- 'master'
21+
- '[0-9]+.[0-9]+'
22+
- '[0-9]+.x'
23+
pull_request:
24+
25+
jobs:
26+
validate-dco:
27+
uses: ./.github/workflows/.dco.yml
28+
29+
vm:
30+
needs:
31+
- validate-dco
32+
uses: ./.github/workflows/.vm.yml
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
template:
37+
# EL 8 is used for running the tests with cgroup v1.
38+
# Do not upgrade this to EL 9 until formally deprecating the cgroup v1 support.
39+
#
40+
# FIXME: use almalinux-8, then probably no need to keep oraclelinux-8 here.
41+
# On almalinux-8, port forwarding tests are failing:
42+
# https://github.com/moby/moby/pull/49819#issuecomment-2815676000
43+
- template://oraclelinux-8 # Oracle's kernel 5.15
44+
# - template://almalinux-8 # kernel 4.18
45+
with:
46+
template: ${{ matrix.template }}

0 commit comments

Comments
 (0)