Skip to content

Commit

Permalink
Merge pull request #446 from MattSkala/ci/wait-on-emulator
Browse files Browse the repository at this point in the history
Wait for emulator to start
  • Loading branch information
nbransby authored Dec 29, 2023
2 parents eb56044 + e06ca79 commit 636eade
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/actions/setup_test_action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ runs:
run: chmod +x gradlew
- name: Install Firebase tools
shell: bash
run: npm install -g firebase-tools
run: npm install -g firebase-tools wait-on
- name: Start Firebase emulator
shell: bash
run: "firebase emulators:start --config=./test/firebase.json &"
run: |
firebase emulators:start --config=./test/firebase.json &
wait-on http://127.0.0.1:9099
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
- uses: actions/checkout@v3
- name: Setup test environment
uses: ./.github/actions/setup_test_action
timeout-minutes: 10
- name: Run JS Tests
run: ./gradlew cleanTest jsTest
- name: Upload JS test artifact
Expand All @@ -89,14 +90,13 @@ jobs:
- uses: actions/checkout@v3
- name: Cocoapods cache
uses: actions/cache@v3
id: cocoapods-cache
with:
path: |
~/.cocoapods
~/Library/Caches/CocoaPods
*/build/cocoapods
*/build/classes
key: cocoapods-cache
key: cocoapods-cache-v2
- name: Setup test environment
uses: ./.github/actions/setup_test_action
- name: Run iOS Tests
Expand All @@ -112,4 +112,4 @@ jobs:
if: failure()
with:
name: "Firebase Debug Log"
path: "**/firebase-debug.log"
path: "**/firebase-debug.log"

0 comments on commit 636eade

Please sign in to comment.