Skip to content

QC-17: Fix 'App Orientation Bug' #3

QC-17: Fix 'App Orientation Bug'

QC-17: Fix 'App Orientation Bug' #3

name: Flutter Lint and Version Check
on:
pull_request:
branches: [ "develop" ]
jobs:
lint-and-version-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19.4'
- name: Get dependencies
run: |
cd app
flutter pub get
- name: Run Flutter Analyzer
run: |
cd app
flutter analyze
- name: Check Version Bump
run: |
cd app
PREV_VERSION=$(git show HEAD^:pubspec.yaml | grep '^version:' | awk '{print $2}')
CURR_VERSION=$(grep '^version:' pubspec.yaml | awk '{print $2}')
if [ "$PREV_VERSION" == "$CURR_VERSION" ]; then
echo "Version has not been bumped. Failing the workflow."
exit 1
fi