Add Call Direction in sendPhoneCallEvents description to fix customPa… #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Flutter analyze, test & deploy example web app | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
cache: true | |
- run: flutter --version | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Analyze project source | |
run: flutter analyze | |
- name: Run tests | |
run: flutter test --coverage | |
deploy-example-web: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Flutter build environment | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: 'stable' | |
cache: true | |
- run: flutter --version | |
- run: flutter pub get | |
- run: flutter config --enable-web | |
- run: cd ./example; flutter build web --release --target=lib/main.dart --output=build/web | |
- name: Update service worker | |
run: cat ./example/service-worker/twilio-sw.js >> ./example/build/web/flutter_service_worker.js | |
- name: Archive Production Artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: web-build | |
path: example/build/web | |
- name: Firebase Deploy | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TWILIO_VOICE_WEB }}' | |
channelId: live | |
projectId: twilio-voice-web | |