Skip to content

Commit

Permalink
fix(CI): Break up workflows and use templates
Browse files Browse the repository at this point in the history
  • Loading branch information
timothystewart6 committed Oct 29, 2023
1 parent 8637027 commit 856015d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/molecule-template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Molecule Template
on:
workflow_dispatch:
workflow_call:
jobs:
molecule:
name: Molecule
Expand Down
27 changes: 8 additions & 19 deletions .github/workflows/test-default.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
---
name: Test Default
on:
workflow_call:
jobs:
molecule:
name: Molecule
runs-on: macos-12
strategy:
matrix:
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
runs:
using: "composite"
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

0 comments on commit 856015d

Please sign in to comment.