Add databaseId all functions #153
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
name: Quality gate | |
on: | |
pull_request: | |
push: | |
branches: | |
- '**' | |
env: | |
GOOGLE_APPLICATION_CREDENTIALS: test/service-account.json | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- run: dart format --set-exit-if-changed . | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- run: dart pub get | |
- run: dart analyze --fatal-infos | |
test: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
- name: Load test credentials | |
run: | | |
echo "${{ secrets.test_service_account }}" | base64 -d - > test/service-account.json | |
echo "const apiKey = '${{ secrets.test_api_key }}';" > test/test_config.dart | |
echo "const projectId = '${{ secrets.test_project_id }}';" >> test/test_config.dart | |
echo "const email = '${{ secrets.test_email }}';" >> test/test_config.dart | |
echo "const password = '${{ secrets.test_password }}';" >> test/test_config.dart | |
- run: dart pub get | |
- run: dart run test |