Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build mobile app

on:
push:
branches: [$default-branch]
branches: ['main']

jobs:
build_android_apk:
Expand Down
22 changes: 5 additions & 17 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: PR Checks and Code Quality

on:
pull_request:
branches: [$default-branch]
branches: ["main"]

jobs:
setup-and-install-dependencies:
name: Setup and install dependencies
test-and-analyze:
name: Test and analyze code
runs-on: ubuntu-latest

steps:
Expand All @@ -22,20 +22,8 @@ jobs:
- name: Install dependencies
run: flutter pub get

code-quality-check:
name: Check code quality
runs-on: ubuntu-latest
needs: setup-and-install-dependencies

steps:
- name: Run flutter analyze
run: flutter analyze
run: flutter analyze --no-pub

run-tests:
name: Run tests
runs-on: ubuntu-latest
needs: setup-and-install-dependencies

steps:
- name: Run flutter test
run: flutter test
run: flutter test --no-pub