Skip to content

Commit

Permalink
test require build so..
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Mar 7, 2024
1 parent e6db9c1 commit f19716e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ jobs:
shouldRunAndroid: ${{ steps.setVariables.outputs.shouldRunAndroid }}
shouldRunIos: ${{ steps.setVariables.outputs.shouldRunIos }}

Build:
needs: SetUp
uses: ./.github/workflows/build.yml
with:
shouldRunKmp: ${{ needs.SetUp.outputs.shouldRunKmp }}
shouldRunAndroid: ${{ needs.SetUp.outputs.shouldRunAndroid }}
shouldRunIos: ${{ needs.SetUp.outputs.shouldRunIos }}

UnitTests:
needs: SetUp
uses: ./.github/workflows/test.yml
Expand All @@ -61,12 +53,12 @@ jobs:
AllowMerge:
if: always()
runs-on: ubuntu-latest
needs: [ Build, UnitTests ]
needs: [ UnitTests ]
steps:
- run: |
if [ ${{ github.event_name }} == pull_request ] && [ ${{ join(github.event.pull_request.labels.*.name) == '' }} == true ]; then
exit 1
elif [ ${{ (contains(needs.Build.result, 'failure')) }} == true ] || [ ${{ (contains(needs.UnitTests.result, 'failure')) }} == true ]; then
elif [ ${{ (contains(needs.UnitTests.result, 'failure')) }} == true ]; then
exit 1
else
exit 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:


Android:
if: ${{ inputs.shouldRunKmp == 'true' && inputs.shouldRunAndroid == 'true' }}
if: ${{ inputs.shouldRunKmp == 'true' || inputs.shouldRunAndroid == 'true' }}
runs-on: ubuntu-latest

steps:
Expand All @@ -41,7 +41,7 @@ jobs:
- run: ./gradlew :androidApp:cleanTestDebugUnitTest :shared:testDebugUnitTest

iOS:
if: ${{ inputs.shouldRunKmp == 'true' && inputs.shouldRunIos == 'true' }}
if: ${{ inputs.shouldRunKmp == 'true' || inputs.shouldRunIos == 'true' }}
runs-on: macos-13
timeout-minutes: 60
steps:
Expand Down

0 comments on commit f19716e

Please sign in to comment.