forked from tim/k3s-ansible
fix(CI): Break up workflows and use templates
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -10,6 +10,12 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
uses: ./.github/workflows/lint.yml
|
uses: ./.github/workflows/lint.yml
|
||||||
test:
|
test-default:
|
||||||
uses: ./.github/workflows/test.yml
|
uses: ./.github/workflows/test-default.yml
|
||||||
|
needs: [lint]
|
||||||
|
test-ipv6:
|
||||||
|
uses: ./.github/workflows/test-ipv6.yml
|
||||||
|
needs: [lint]
|
||||||
|
test-single-node:
|
||||||
|
uses: ./.github/workflows/test-single-node.yml
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
name: Test
|
name: Molecule Template
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
jobs:
|
jobs:
|
||||||
@@ -7,11 +7,6 @@ jobs:
|
|||||||
name: Molecule
|
name: Molecule
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
|
||||||
scenario:
|
|
||||||
- default
|
|
||||||
- ipv6
|
|
||||||
- single_node
|
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
PYTHON_VERSION: "3.11"
|
PYTHON_VERSION: "3.11"
|
||||||
12
.github/workflows/test-default.yml
vendored
Normal file
12
.github/workflows/test-default.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: Test Default
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
jobs:
|
||||||
|
molecule:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
scenario:
|
||||||
|
- default
|
||||||
|
extends:
|
||||||
|
- ./.github/workflows/molecule-template.yml
|
||||||
12
.github/workflows/test-ipv6.yml
vendored
Normal file
12
.github/workflows/test-ipv6.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: Test IPv6
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
jobs:
|
||||||
|
molecule:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
scenario:
|
||||||
|
- ipv6
|
||||||
|
extends:
|
||||||
|
- ./.github/workflows/molecule-template.yml
|
||||||
12
.github/workflows/test-single-node.yml
vendored
Normal file
12
.github/workflows/test-single-node.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: Test Single Node
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
jobs:
|
||||||
|
molecule:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
scenario:
|
||||||
|
- single_node
|
||||||
|
extends:
|
||||||
|
- ./.github/workflows/molecule-template.yml
|
||||||
Reference in New Issue
Block a user