From cdedbab3c75b2ac0db1a3213f517d93e1c6cfcd9 Mon Sep 17 00:00:00 2001 From: Daniel Cachapa Date: Mon, 12 Jun 2023 14:18:50 +0200 Subject: [PATCH] Break quality gate into separate operations --- .github/workflows/analyze.yml | 20 +++++++++++++++++++ .github/workflows/format.yml | 18 +++++++++++++++++ .../workflows/{quality_gate.yml => test.yml} | 6 +----- 3 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/analyze.yml create mode 100644 .github/workflows/format.yml rename .github/workflows/{quality_gate.yml => test.yml} (83%) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml new file mode 100644 index 0000000..73eddd9 --- /dev/null +++ b/.github/workflows/analyze.yml @@ -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 diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..caec342 --- /dev/null +++ b/.github/workflows/format.yml @@ -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 . diff --git a/.github/workflows/quality_gate.yml b/.github/workflows/test.yml similarity index 83% rename from .github/workflows/quality_gate.yml rename to .github/workflows/test.yml index 85497c3..742cd67 100644 --- a/.github/workflows/quality_gate.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: Quality Gate +name: Integration tests on: pull_request: @@ -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