Skip to content

Commit 57c91f0

Browse files
authored
Skip GH action *plus* tests only when secrets aren't present (#204)
1 parent d12375a commit 57c91f0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/molecule.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,21 @@ jobs:
2727
- uninstall
2828
steps:
2929
- name: Check out the codebase
30-
if: github.event.pull_request.head.repo.full_name == github.repository
3130
uses: actions/checkout@v3
3231

3332
- name: Set up Python 3
34-
if: github.event.pull_request.head.repo.full_name == github.repository
3533
uses: actions/setup-python@v4
3634
with:
3735
python-version: 3.x
3836

3937
- name: Install Molecule dependencies
40-
if: github.event.pull_request.head.repo.full_name == github.repository
4138
run: pip3 install -r .github/workflows/requirements/requirements_molecule.txt
4239

43-
- name: Install Ansible base dependencies
44-
if: github.event.pull_request.head.repo.full_name == github.repository
40+
- name: Install Ansible core dependencies
4541
run: ansible-galaxy install -r .github/workflows/requirements/requirements_ansible.yml
4642

4743
- name: Run Molecule tests
48-
if: github.event.pull_request.head.repo.full_name == github.repository
44+
if: ${{ env.NGINX_CRT != 0 && env.NGINX_KEY != 0 }}
4945
run: molecule test -s ${{ matrix.scenario }}
5046
env:
5147
PY_COLORS: 1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Always refresh the `yum` cache.
1212

1313
TESTS:
1414

15+
* Update GitHub actions to only skip \*plus\* scenarios when the NGINX Plus license secrets are not present (it used to only run the NGINX Plus test scenarios during internal PRs).
1516
* Remove Yamllint (Ansible Lint now incorporates Yamllint).
1617
* Skip Ansible Lint line length rule.
1718

0 commit comments

Comments
 (0)