fix(CI): Break up workflows and use templates

This commit is contained in:
Timothy Stewart
2023-10-29 14:26:53 -05:00
parent 8637027635
commit 856015d127
2 changed files with 9 additions and 20 deletions

View File

@@ -1,7 +1,7 @@
--- ---
name: Molecule Template name: Molecule Template
on: on:
workflow_dispatch: workflow_call:
jobs: jobs:
molecule: molecule:
name: Molecule name: Molecule

View File

@@ -1,21 +1,10 @@
--- ---
name: Test Default name: Test Default
on: runs:
workflow_call: using: "composite"
jobs: steps:
molecule: - name: Check out the codebase
name: Molecule uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0
runs-on: macos-12 with:
strategy: ref: ${{ github.event.pull_request.head.sha }}
matrix: - uses: ./.github/workflows/molecule-template.yml
scenario:
- default
fail-fast: false
env:
PYTHON_VERSION: "3.11"
steps:
- name: Check out the codebase
uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/workflows/molecule-template.yml