From f54f180997d220f0b168ac1b8e2929b8a00bd0ae Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Sun, 29 Oct 2023 14:10:04 -0500 Subject: [PATCH] fix(CI): Break up workflows and use templates --- .github/workflows/molecule-template.yml | 8 ++++---- .github/workflows/test-default.yml | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/molecule-template.yml b/.github/workflows/molecule-template.yml index c754195b3..d1795883b 100644 --- a/.github/workflows/molecule-template.yml +++ b/.github/workflows/molecule-template.yml @@ -11,10 +11,10 @@ jobs: 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 }} + - name: Check out the codebase + uses: actions/checkout@e2f20e631ae6d7dd3b768f56a5d2af784dd54791 # v3 2.5.0 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Configure VirtualBox run: |- diff --git a/.github/workflows/test-default.yml b/.github/workflows/test-default.yml index ba2450d3b..4afc6d27e 100644 --- a/.github/workflows/test-default.yml +++ b/.github/workflows/test-default.yml @@ -13,9 +13,10 @@ jobs: 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 }}\ 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