From ec0bd4a7f9a9fc6c0d75275bfadeeac9d183544a Mon Sep 17 00:00:00 2001 From: neeleshpoli <72574589+neeleshpoli@users.noreply.github.com> Date: Sat, 22 Nov 2025 16:25:12 -0600 Subject: [PATCH 1/3] Update branch references to 'main' in workflow files --- .github/workflows/build.yml | 2 +- .github/workflows/pr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43c68f8..ff18eca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build mobile app on: push: - branches: [$default-branch] + branches: ['main'] jobs: build_android_apk: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index dfc140b..2a31555 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -2,7 +2,7 @@ name: PR Checks and Code Quality on: pull_request: - branches: [$default-branch] + branches: ['main'] jobs: setup-and-install-dependencies: From 327ccf628d040ad7db4b59260f0e6f4545a39541 Mon Sep 17 00:00:00 2001 From: neeleshpoli <72574589+neeleshpoli@users.noreply.github.com> Date: Sat, 22 Nov 2025 16:34:27 -0600 Subject: [PATCH 2/3] Move eveything back into one job --- .github/workflows/pr.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2a31555..d748607 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -2,11 +2,11 @@ name: PR Checks and Code Quality on: pull_request: - branches: ['main'] + 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: @@ -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-tests: - name: Run tests - runs-on: ubuntu-latest - needs: setup-and-install-dependencies - - steps: - name: Run flutter test run: flutter test From 071ace1a5239f261c1b94025f2ed7b8648e51f3e Mon Sep 17 00:00:00 2001 From: neeleshpoli <72574589+neeleshpoli@users.noreply.github.com> Date: Sat, 22 Nov 2025 16:37:50 -0600 Subject: [PATCH 3/3] Update flutter analyze and test commands to include --no-pub flag --- .github/workflows/pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index d748607..9d579ac 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -23,7 +23,7 @@ jobs: run: flutter pub get - name: Run flutter analyze - run: flutter analyze + run: flutter analyze --no-pub - name: Run flutter test - run: flutter test + run: flutter test --no-pub