Skip to content

Commit be475c3

Browse files
authored
chore: (CI) split out build failure issue from test failure issue
1 parent a51edd9 commit be475c3

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,14 @@ jobs:
297297
# Validate the build to master was successful; open an issue if not
298298
validate:
299299
name: Validate successful build on master
300-
needs: [test, test-wtr, e2e]
300+
needs: [build, test, test-wtr, e2e]
301301
if: |
302302
always() &&
303303
github.event_name == 'push'
304304
runs-on: ubuntu-latest
305305
steps:
306306
- name: Open issue if build breaks
307-
if: |
308-
needs.test.result == 'failure' ||
309-
needs.test-wtr.result == 'failure' ||
310-
needs.e2e.result == 'failure'
307+
if: needs.build.outcome == 'failure'
311308
uses: imjohnbo/issue-bot@v3
312309
with:
313310
assignees: "castastrophe"
@@ -317,4 +314,19 @@ jobs:
317314
column: Prioritized
318315
close-previous: true
319316
title: "❌ Build is failing on master"
320-
body: "It looks like the build is currently failing on the master branch. See failed [action results](https://github.com/patternfly/patternfly-elements/actions/runs/${{ github.run_id }}) for more details."
317+
body: "It looks like the build is currently failing on the master branch. See failed [action results](https://github.com/patternfly/patternfly-elements/actions/runs/${{ github.run_id }}) for more details."
318+
- name: Open issue if tests fail
319+
if: |
320+
needs.test.outcome == 'failure' ||
321+
needs.test-wtr.outcome == 'failure' ||
322+
needs.e2e.outcome == 'failure'
323+
uses: imjohnbo/issue-bot@v3
324+
with:
325+
assignees: "castastrophe"
326+
labels: "fix, priority: medium"
327+
pinned: true
328+
project: 2 # The project-number from organization project
329+
column: Prioritized
330+
close-previous: true
331+
title: "🧪 Tests are failing on master"
332+
body: "It looks like the build is currently failing on the master branch. See failed [action results](https://github.com/patternfly/patternfly-elements/actions/runs/${{ github.run_id }}) for more details."

0 commit comments

Comments
 (0)