Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
michalziolkowski committed Mar 26, 2024
1 parent 289d213 commit 48c3503
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,42 @@ jobs:
update_builds:
if: ${{ !github.event.inputs.skip_build || github.event_name == 'push' }}
uses: sherlo-io/sherlo/.github/workflows/update_builds.yml@michal/eas-build-hooks
with:
profile: 'preview'
env:
SHERLO_BOT_APP_ID: ${{ secrets.SHERLO_BOT_APP_ID }}
SHERLO_BOT_PRIVATE_KEY: ${{ secrets.SHERLO_BOT_PRIVATE_KEY }}
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
with:
profile: 'preview'
SHERLO_BOT_APP_ID: ${{ env.SHERLO_BOT_APP_ID }}
SHERLO_BOT_PRIVATE_KEY: ${{ env.SHERLO_BOT_PRIVATE_KEY }}
EXPO_TOKEN: ${{ env.EXPO_TOKEN }}

run_sherlo_sync_tests:
if: ${{ github.event.inputs.run_sherlo_sync_tests || github.event_name == 'push' }}
needs: [update_builds]
uses: sherlo-io/sherlo/.github/workflows/run_sherlo_sync.yml@michal/eas-build-hooks
env:
SHERLO_TOKEN: ${{ secrets.SHERLO_TOKEN }}
with:
skip_build: true
SHERLO_TOKEN: ${{ secrets.SHERLO_TOKEN }}
SHERLO_TOKEN: ${{ env.SHERLO_TOKEN }}

run_sherlo_async_tests:
if: ${{ github.event.inputs.run_sherlo_async_tests || github.event_name == 'push' }}
needs: [update_builds]
uses: sherlo-io/sherlo/.github/workflows/run_sherlo_async.yml@michal/eas-build-hooks
env:
SHERLO_TOKEN: ${{ secrets.SHERLO_TOKEN }}
with:
skip_build: true
SHERLO_TOKEN: ${{ secrets.SHERLO_TOKEN }}
SHERLO_TOKEN: ${{ env.SHERLO_TOKEN }}

run_sherlo_eas_hooks_tests:
if: ${{ github.event.inputs.run_sherlo_eas_hooks_tests || github.event_name == 'push' }}
uses: sherlo-io/sherlo/.github/workflows/run_sherlo_eas_hooks.yml@michal/eas-build-hooks
with:
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
SHERLO_TOKEN: ${{ secrets.SHERLO_TOKEN }}
with:
EXPO_TOKEN: ${{ env.EXPO_TOKEN }}
SHERLO_TOKEN: ${{ env.SHERLO_TOKEN }}
8 changes: 6 additions & 2 deletions .github/workflows/update_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ on:
jobs:
android_build:
uses: ./.github/workflows/android_build.yml
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN || inputs.EXPO_TOKEN }}
with:
profile: ${{ github.event.inputs.profile || inputs.profile }}
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN || inputs.EXPO_TOKEN }}
EXPO_TOKEN: ${{ env.EXPO_TOKEN }}

ios_build:
uses: ./.github/workflows/ios_build.yml
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN || inputs.EXPO_TOKEN }}
with:
profile: ${{ github.event.inputs.profile || inputs.profile }}
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN || inputs.EXPO_TOKEN }}
EXPO_TOKEN: ${{ env.EXPO_TOKEN }}

update_in_repo:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 48c3503

Please sign in to comment.