Skip to content

Commit

Permalink
ci: Add a test-results action that is the result of the previous tests
Browse files Browse the repository at this point in the history
- Should pass if the previous tests pass, otherwise it should fail
  • Loading branch information
mofojed committed Nov 22, 2023
1 parent 87da019 commit bb5a327
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/modified-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ jobs:
if: ${{ needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '' }}
uses: ./.github/workflows/test-js-packages.yml

# Action that outputs success is test-python and test-js are either both successful or both skipped
# This action will simply throw if either of the test-js or test-python jobs fail
# https://github.com/orgs/community/discussions/26822#discussioncomment-5122101
test-results:
if: ${{ always() }}
runs-on: ubuntu-22.04
needs: [test-python, test-js]
steps:
# Only fail if one of the previous tests failed
- run: exit 1
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}

filter-release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
Expand Down

0 comments on commit bb5a327

Please sign in to comment.