Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
(MAINT) Add labeller and stale GHA workflows
[puppet-modules/puppetlabs-apt.git]
/
.github
/
workflows
/
pr_test.yml
diff --git
a/.github/workflows/pr_test.yml
b/.github/workflows/pr_test.yml
index fb9ff97650872092cd708360ad58bfab046e0802..e37a1534798202c1589ae0d2166acd1ede148ac7 100644
(file)
--- a/
.github/workflows/pr_test.yml
+++ b/
.github/workflows/pr_test.yml
@@
-51,6
+51,11
@@
jobs:
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV
echo STEP_ID=Setup-Acceptance-Test-Matrix >> $GITHUB_ENV
echo STEP_START=$(date +%s) >> $GITHUB_ENV
+ - name: Run validation steps
+ run: |
+ bundle exec rake validate
+ if: ${{ github.repository_owner == 'puppetlabs' }}
+
- name: Setup Acceptance Test Matrix
id: get-matrix
run: |
- name: Setup Acceptance Test Matrix
id: get-matrix
run: |
@@
-128,7
+133,14
@@
jobs:
echo
echo ::endgroup::
echo ::group::=== INVENTORY ===
echo
echo ::endgroup::
echo ::group::=== INVENTORY ===
- sed -e 's/password: .*/password: "[redacted]"/' < inventory.yaml || true
+ if [ -f 'spec/fixtures/litmus_inventory.yaml' ];
+ then
+ FILE='spec/fixtures/litmus_inventory.yaml'
+ elif [ -f 'inventory.yaml' ];
+ then
+ FILE='inventory.yaml'
+ fi
+ sed -e 's/password: .*/password: "[redacted]"/' < $FILE || true
echo ::endgroup::
- name: Install agent
echo ::endgroup::
- name: Install agent
@@
-163,7
+175,7
@@
jobs:
if: ${{ always() }}
continue-on-error: true
run: |
if: ${{ always() }}
continue-on-error: true
run: |
- if [
-f inventory.yaml
]; then
+ if [
[ -f inventory.yaml || -f spec/fixtures/litmus_inventory.yaml ]
]; then
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:tear_down' -- bundle exec rake 'litmus:tear_down'
echo ::group::=== REQUEST ===
cat request.json || true
buildevents cmd $TRACE_ID $STEP_ID 'rake litmus:tear_down' -- bundle exec rake 'litmus:tear_down'
echo ::group::=== REQUEST ===
cat request.json || true