Skip to content

Commit

Permalink
Run quality gates in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
cachapa committed Jun 12, 2023
1 parent c6e735e commit 4f17abe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 45 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/analyze.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/format.yml

This file was deleted.

27 changes: 20 additions & 7 deletions .github/workflows/test.yml → .github/workflows/quality_gate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Integration tests
name: Quality gate

on:
pull_request:
Expand All @@ -10,10 +10,26 @@ env:
GOOGLE_APPLICATION_CREDENTIALS: test/service-account.json

jobs:
build:
format:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- run: dart format --set-exit-if-changed .

analyze:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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@v2
- uses: dart-lang/setup-dart@v1
Expand All @@ -24,8 +40,5 @@ jobs:
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
- name: Get dependencies
run: dart pub get
- name: Run tests
run: dart run test
- run: dart pub get
- run: dart run test

0 comments on commit 4f17abe

Please sign in to comment.