Skip to content

Commit

Permalink
Merge pull request #27 from tattersoftware/workflow
Browse files Browse the repository at this point in the history
Background Emulation
  • Loading branch information
MGatner committed Jan 30, 2022
2 parents 69a3dc0 + 41a3a90 commit 8e81d66
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ jobs:
with:
node-version: '16'

- name: Install Firebase Tools
run: npm install -g firebase-tools
- name: Start Firebase Emulation
run: |
npm install -g firebase-tools
firebase emulators:start --token "${{ secrets.FIREBASE_TOKEN }}" &
- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -88,11 +90,9 @@ jobs:
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
fi
- name: Test with PHPUnit (Firebase Emulation)
run: firebase emulators:exec --token "${{ secrets.FIREBASE_TOKEN }}" "vendor/bin/phpunit --teamcity"
- name: Test with PHPUnit
run: vendor/bin/phpunit --teamcity
env:
TERM: xterm-256color
TACHYCARDIA_MONITOR_GA: enabled
FIRESTORE_EMULATOR_HOST: localhost:8080

- name: Mutate with Infection
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ jobs:
with:
node-version: '16'

- name: Install Firebase Tools
run: npm install -g firebase-tools
- name: Start Firebase Emulation
run: |
npm install -g firebase-tools
firebase emulators:start --token "${{ secrets.FIREBASE_TOKEN }}" &
- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -85,8 +88,8 @@ jobs:
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
fi
- name: Test with PHPUnit (Firebase Emulation)
run: firebase emulators:exec --token "${{ secrets.FIREBASE_TOKEN }}" "vendor/bin/phpunit --verbose --coverage-text"
- name: Test with PHPUnit
run: vendor/bin/phpunit --verbose --coverage-text
env:
TERM: xterm-256color
TACHYCARDIA_MONITOR_GA: enabled
Expand Down

0 comments on commit 8e81d66

Please sign in to comment.