From 63e5182ce35199520c3c7dae7b30c0fc14863dff Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Fri, 8 Jan 2021 21:19:43 +0100 Subject: [PATCH] Update Molecule CI/CD workflow to avoid running `plus` tests on external PRs (#355) --- .github/workflows/molecule.yml | 5 ++++- CHANGELOG.md | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/molecule.yml b/.github/workflows/molecule.yml index a7ad495..e2559a4 100644 --- a/.github/workflows/molecule.yml +++ b/.github/workflows/molecule.yml @@ -32,14 +32,17 @@ jobs: - source_centos steps: - name: Check out the codebase + if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)" uses: actions/checkout@v2 - name: Set up Python 3 + if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)" uses: actions/setup-python@v2 with: python-version: 3.x - name: Install Molecule dependencies + if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)" run: | pip3 install ansible-base==2.10.3 pip3 install ansible==2.10.3 @@ -49,8 +52,8 @@ jobs: pip3 install docker==4.4.0 - name: Run Molecule tests + if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)" run: molecule test -s ${{ matrix.scenario }} - if: contains(${{ matrix.scenario }}, "plus") && !(github.event_name == "pull_request" && github.event.pull_request.head.repo.fork) env: PY_COLORS: "1" ANSIBLE_FORCE_COLOR: "1" diff --git a/CHANGELOG.md b/CHANGELOG.md index 286f5d8..3b705aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog -## 0.19.0 (Unreleased) +## 0.19.1 (Unreleased) + +ENHANCEMENTS: + +The GitHub actions Molecule CI/CD workflow should now correctly avoid running 'plus' related tests on external PRs. + +## 0.19.0 (December 23, 2020) BREAKING CHANGES: