mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-25 18:23:05 +01:00
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:
|
||||
lint:
|
||||
uses: ./.github/workflows/lint.yml
|
||||
test:
|
||||
uses: ./.github/workflows/test.yml
|
||||
test-default:
|
||||
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]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
name: Test
|
||||
name: Molecule Template
|
||||
on:
|
||||
workflow_call:
|
||||
jobs:
|
||||
@@ -7,11 +7,6 @@ jobs:
|
||||
name: Molecule
|
||||
runs-on: macos-12
|
||||
strategy:
|
||||
matrix:
|
||||
scenario:
|
||||
- default
|
||||
- ipv6
|
||||
- single_node
|
||||
fail-fast: false
|
||||
env:
|
||||
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