Skip to content

Commit 498047a

Browse files
authored
Merge pull request #169 from puppetlabs/simplify-actions
Simplify Github Actions
2 parents 4c54dc6 + fd112d6 commit 498047a

File tree

3 files changed

+13
-162
lines changed

3 files changed

+13
-162
lines changed

.github/workflows/manual-smoke-test.yaml

Lines changed: 0 additions & 155 deletions
This file was deleted.

.github/workflows/pr-test.yaml renamed to .github/workflows/test-install-matrix.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
---
2-
name: "Pull Request test"
2+
name: "Install test matrix"
33

44
on:
55
pull_request:
66
branches: [main]
77
types: [review_requested]
8+
workflow_dispatch: {}
89

910
env:
1011
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
1112
HONEYCOMB_DATASET: litmus tests
1213

1314
jobs:
14-
smoke-test:
15-
name: "Install test: ${{ matrix.architecture }}, ${{ matrix.image }}, PE ${{ matrix.version }}"
15+
test-install:
16+
name: "PE ${{ matrix.version }} ${{ matrix.architecture }} on ${{ matrix.image }}"
1617
runs-on: ubuntu-20.04
1718
env:
1819
BOLT_GEM: true

.github/workflows/manual-smoke-test-with-debugging.yaml renamed to .github/workflows/test-install.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: "Manual smoke test with debugging"
2+
name: "Install test"
33

44
on:
55
workflow_dispatch:
@@ -16,14 +16,18 @@ on:
1616
description: 'PE version to install'
1717
required: true
1818
default: '2019.8.5'
19+
ssh-debugging:
20+
description: 'Boolean; whether or not to pause for ssh debugging'
21+
required: true
22+
default: 'false'
1923

2024
env:
2125
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
2226
HONEYCOMB_DATASET: litmus tests
2327

2428
jobs:
25-
smoke-test:
26-
name: "${{ matrix.architecture }}, ${{ matrix.image }}, PE ${{ matrix.version }}"
29+
test-install:
30+
name: "PE ${{ matrix.version }} ${{ matrix.architecture }} on ${{ matrix.image }}"
2731
runs-on: ubuntu-20.04
2832
env:
2933
BOLT_GEM: true
@@ -41,6 +45,7 @@ jobs:
4145

4246
steps:
4347
- name: 'Start SSH session'
48+
if: ${{ github.event.inputs.ssh-debugging == 'true' }}
4449
uses: luchihoratiu/debug-via-ssh@main
4550
with:
4651
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
@@ -140,7 +145,7 @@ jobs:
140145
echo ::endgroup::
141146
142147
- name: 'Wait as long as the file ${HOME}/pause file is present'
143-
if: ${{ always() }}
148+
if: ${{ always() && github.event.inputs.ssh-debugging == 'true' }}
144149
run: |
145150
while [ -f "${HOME}/pause" ] ; do
146151
echo "${HOME}/pause present, sleeping for 60 seconds..."

0 commit comments

Comments
 (0)