Skip to content

Commit

Permalink
Merge pull request #42 from JayAgola/fix-flutter-deprecated
Browse files Browse the repository at this point in the history
Test the CI process of the application build
  • Loading branch information
aspiringgarv authored Nov 1, 2024
2 parents 303956b + f36411d commit 7459714
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
32 changes: 20 additions & 12 deletions .github/workflows/flutter_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- name: Check out code
Expand All @@ -24,24 +24,32 @@ jobs:
with:
flutter-version: 3.24.3

- name: Set up Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Install dependencies
run: flutter pub get

- name: Run tests
run: flutter test

# - name: Build APK for Android
# run: flutter build apk
#


- name: Build APK for Android
run: flutter build apk

# - name: Build iOS App
# run: flutter build ios
#
# - name: Archive and upload Android artifacts
# uses: actions/upload-artifact@v4
# with:
# name: build-android
# path: build/app/outputs/flutter-apk/app-release.apk
#
# run: flutter build ios --no-codesign

- name: Archive and upload Android artifacts
uses: actions/upload-artifact@v4
with:
name: build-android
path: build/app/outputs/flutter-apk/app-release.apk

# - name: Archive and upload iOS artifacts
# uses: actions/upload-artifact@v4
# with:
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ android {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storeFile keystoreProperties['storeFile']
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
signingConfig signingConfigs.debug
}
}

Expand Down

0 comments on commit 7459714

Please sign in to comment.