Skip to content

Commit

Permalink
Lisätään kiertotie ongelmaan, jossa junit-raportit ohjautuivat väärään
Browse files Browse the repository at this point in the history
workflowiin develop-branchin automaattisten testien yhteydessä
* VHAR-8429
* mikepenz/action-junit-report#40 (comment)
  • Loading branch information
K1ll3rF0x committed Dec 1, 2023
1 parent 3cfb740 commit 31aa758
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/reusable_run_app_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ jobs:
report_paths: 'test2junit/xml/*.xml'
require_passed_tests: true
check_name: 'Test Report: ${{ env.NAME_PREFIX }}Backend'
# https://github.com/mikepenz/action-junit-report/issues/40#issuecomment-1607743568
# Kiertotie sille, että test result checkit menevät väärän workflown tuloksiin
# develop-branchin mergen tai muun samantyyppisesti triggeröityjen workflowien kohdalla
annotate_only: true
detailed_summary: true

basic-tests:
if: ${{ inputs.basic-tests == 'true' }}
Expand Down Expand Up @@ -254,6 +259,11 @@ jobs:
report_paths: 'test2junit/xml/*.xml'
require_passed_tests: true
check_name: 'Test Report: ${{ env.NAME_PREFIX }}Slow'
# https://github.com/mikepenz/action-junit-report/issues/40#issuecomment-1607743568
# Kiertotie sille, että test result checkit menevät väärän workflown tuloksiin
# develop-branchin mergen tai muun samantyyppisesti triggeröityjen workflowien kohdalla
annotate_only: true
detailed_summary: true

- name: Setup test tools
uses: ./.github/actions/setup-test-tools
Expand Down Expand Up @@ -319,6 +329,11 @@ jobs:
report_paths: 'test2junit/xml/*.xml'
require_passed_tests: true
check_name: 'Test Report: ${{ env.NAME_PREFIX }}Integration'
# https://github.com/mikepenz/action-junit-report/issues/40#issuecomment-1607743568
# Kiertotie sille, että test result checkit menevät väärän workflown tuloksiin
# develop-branchin mergen tai muun samantyyppisesti triggeröityjen workflowien kohdalla
annotate_only: true
detailed_summary: true

e2e-tests:
if: ${{ inputs.e2e-tests == 'true' }}
Expand Down Expand Up @@ -456,6 +471,11 @@ jobs:
report_paths: 'cypress/test-results/*.xml'
require_passed_tests: true
check_name: 'Test Report: Cypress (${{ env.NAME_PREFIX }}${{ matrix.browser }})'
# https://github.com/mikepenz/action-junit-report/issues/40#issuecomment-1607743568
# Kiertotie sille, että test result checkit menevät väärän workflown tuloksiin
# develop-branchin mergen tai muun samantyyppisesti triggeröityjen workflowien kohdalla
annotate_only: true
detailed_summary: true

# Mikäli testit epäonnistuvat, tallenna cypress screenshotit ja videot artifakteina
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 31aa758

Please sign in to comment.