-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Sesu8642/InfusionTimer
- Loading branch information
Showing
6 changed files
with
109 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
|
||
build_android: | ||
runs-on: ubuntu-latest | ||
container: | ||
# trying to be close to the f-droid build to detect failures early | ||
image: registry.gitlab.com/fdroid/fdroidserver:buildserver-bullseye | ||
env: | ||
ANDROID_HOME: /opt/android-sdk | ||
steps: | ||
|
||
- name: apt update | ||
run: sudo apt update | ||
|
||
- name: Install jq | ||
run: sudo apt install jq | ||
|
||
- name: Install xz-utils | ||
run: sudo apt install xz-utils | ||
|
||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.10.5' | ||
channel: 'stable' | ||
cache: true | ||
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash' | ||
|
||
- run: git config --global --add safe.directory ${{ env.FLUTTER_ROOT }} | ||
|
||
- run: flutter config --no-analytics | ||
|
||
- run: flutter --version | ||
|
||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Android APK | ||
env: | ||
SIGNING_KEY_PWD: ${{ secrets.SIGNING_KEY_PWD }} | ||
run: flutter build apk --flavor ci | ||
|
||
- name: Upload Android apk | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Android apk | ||
path: ./build/app/outputs/flutter-apk/app-ci-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Verify and test | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.10.5' | ||
channel: 'stable' | ||
- run: flutter --version | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Verify formatting | ||
run: dart format --output=none --set-exit-if-changed . | ||
|
||
- name: Analyze project source | ||
run: flutter analyze | ||
|
||
- name: Run tests | ||
run: flutter test -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.