Skip to content

Commit d1a76b5

Browse files
Make sure statuses are working correctly
1 parent d088750 commit d1a76b5

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

.github/workflows/playwright.yml

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,36 @@ jobs:
2525

2626
- name: Build app and run tests
2727
id: run-tests
28-
run: |
29-
npm run test:ci:integration 2>&1 | tee output.txt
28+
run: npm run test:ci:integration
3029
continue-on-error: true
3130

32-
- name: Extract test results between "failed" and "flaky"
33-
id: test-results
34-
run: |
35-
output=$(cat output.txt)
31+
# - name: Build app and run tests
32+
# id: run-tests
33+
# run: |
34+
# npm run test:ci:integration 2>&1 | tee output.txt
35+
# continue-on-error: true
3636

37-
extracted=$(echo "$output" | perl -n -e '/failed(.*?)flaky/ && print $1')
38-
39-
echo "Extracted text: '$extracted'"
40-
echo "extracted<<EOF" >> $GITHUB_OUTPUT
41-
echo "$extracted" >> $GITHUB_OUTPUT
42-
echo "EOF" >> $GITHUB_OUTPUT
37+
# - name: Extract test results between "failed" and "flaky"
38+
# id: test-results
39+
# run: |
40+
# output=$(cat output.txt)
41+
42+
# extracted=$(echo "$output" | perl -n -e '/failed(.*?)flaky/ && print $1')
43+
44+
# echo "Test results: '$extracted'"
45+
# echo "extracted<<EOF" >> $GITHUB_OUTPUT
46+
# echo "$extracted" >> $GITHUB_OUTPUT
47+
# echo "EOF" >> $GITHUB_OUTPUT
48+
49+
# - name: Set failure workflow status 🚨
50+
# if: steps.run-tests.outcome != 'success'
51+
# run: |
52+
# echo '${{ steps.test-results.outputs.extracted }}'
53+
# exit 1
4354

4455
- name: Set failure workflow status 🚨
4556
if: steps.run-tests.outcome != 'success'
46-
run: |
47-
echo '${{ steps.test-results.outputs.extracted }}'
48-
exit 1
57+
run: exit 1
4958

5059
- name: Set successful workflow status ✅
5160
if: steps.run-tests.outcome == 'success'

0 commit comments

Comments
 (0)