Skip to content

Commit

Permalink
Break quality gate into separate operations
Browse files Browse the repository at this point in the history
  • Loading branch information
cachapa committed Jun 12, 2023
1 parent e08599e commit cdedbab
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Static analysis

on:
pull_request:
push:
branches:
- '**'

jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- name: Get dependencies
run: dart pub get
- name: Static code analysis
run: dart analyze --fatal-infos
18 changes: 18 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code style

on:
pull_request:
push:
branches:
- '**'

jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- name: Verify code formatting
run: dart format --set-exit-if-changed .
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Quality Gate
name: Integration tests

on:
pull_request:
Expand All @@ -25,11 +25,7 @@ jobs:
echo "const email = '${{ secrets.test_email }}';" >> test/test_config.dart
echo "const password = '${{ secrets.test_password }}';" >> test/test_config.dart
- name: Verify code formatting
run: dart format --set-exit-if-changed .
- name: Get dependencies
run: dart pub get
- name: Static code analysis
run: dart analyze --fatal-infos
- name: Run tests
run: dart run test

0 comments on commit cdedbab

Please sign in to comment.