Skip to content

Commit 4ce86c1

Browse files
author
Aaron Roller
committed
added test to ignore failures AM-337/gtest
1 parent 72f7792 commit 4ce86c1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
path: somewhere/custom-report.html
6666
test-show-failure:
6767
runs-on: ubuntu-18.04
68+
continue-on-error: true
6869
name: Demonstrates failure case
6970
steps:
7071
- uses: actions/checkout@v1
@@ -78,6 +79,22 @@ jobs:
7879
with:
7980
name: ${{ steps.xunit-viewer.outputs.report-name }}
8081
path: ${{ steps.xunit-viewer.outputs.report-dir }}
82+
test-ignore-failure:
83+
runs-on: ubuntu-18.04
84+
name: Demonstrates failure is not reported
85+
steps:
86+
- uses: actions/checkout@v1
87+
- id: xunit-viewer
88+
uses: ./ #use the current project relative to root
89+
with:
90+
results: test/failure
91+
fail: false
92+
- name: Attach the report
93+
if: always()
94+
uses: actions/upload-artifact@v1
95+
with:
96+
name: ${{ steps.xunit-viewer.outputs.report-name }}
97+
path: ${{ steps.xunit-viewer.outputs.report-dir }}
8198
test-detection:
8299
runs-on: ubuntu-18.04
83100
name: Run tests to ensure detection is working
@@ -93,6 +110,8 @@ jobs:
93110
- test-alternate-results-path
94111
- test-alternate-report-path
95112
- test-detection
113+
- test-show-failure
114+
- test-ignore-failure
96115
steps:
97116
- uses: actions/checkout@v1
98117
- name: Semantic Release

0 commit comments

Comments
 (0)