Skip to content

Commit 63e5182

Browse files
authored
Update Molecule CI/CD workflow to avoid running plus tests on external PRs (#355)
1 parent 171e830 commit 63e5182

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/molecule.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ jobs:
3232
- source_centos
3333
steps:
3434
- name: Check out the codebase
35+
if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
3536
uses: actions/checkout@v2
3637

3738
- name: Set up Python 3
39+
if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
3840
uses: actions/setup-python@v2
3941
with:
4042
python-version: 3.x
4143

4244
- name: Install Molecule dependencies
45+
if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
4346
run: |
4447
pip3 install ansible-base==2.10.3
4548
pip3 install ansible==2.10.3
@@ -49,8 +52,8 @@ jobs:
4952
pip3 install docker==4.4.0
5053
5154
- name: Run Molecule tests
55+
if: "!(contains(matrix.scenario, 'plus') && github.event.pull_request.head.repo.full_name != github.repository)"
5256
run: molecule test -s ${{ matrix.scenario }}
53-
if: contains(${{ matrix.scenario }}, "plus") && !(github.event_name == "pull_request" && github.event.pull_request.head.repo.fork)
5457
env:
5558
PY_COLORS: "1"
5659
ANSIBLE_FORCE_COLOR: "1"

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

3-
## 0.19.0 (Unreleased)
3+
## 0.19.1 (Unreleased)
4+
5+
ENHANCEMENTS:
6+
7+
The GitHub actions Molecule CI/CD workflow should now correctly avoid running 'plus' related tests on external PRs.
8+
9+
## 0.19.0 (December 23, 2020)
410

511
BREAKING CHANGES:
612

0 commit comments

Comments
 (0)