Skip to content

Commit

Permalink
Merge pull request #289 from project-violet/ci-format
Browse files Browse the repository at this point in the history
Format
  • Loading branch information
violet-dev authored Dec 30, 2023
2 parents a49ce4d + 17359d5 commit 6389450
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
48 changes: 45 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,44 @@
name: Build android/ios
name: CI
on:
pull_request:
branches:
- 'dev'
merge_group:

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}

- uses: actions/setup-java@v1
with:
java-version: '12.x'

- uses: subosito/flutter-action@v1
with:
channel: 'stable'

- name: Formatting
run: dart format --output=none --set-exit-if-changed .

- name: Preprocess
run: |
cd lib/server
wget -q ${{ secrets.SECRET_SALT }} || bash << EOF
echo DO NOT USE SECRET
echo 'String getValid(String vToken) { return vToken; }' > salt.dart
EOF
wget -q ${{ secrets.SECRET_WSALT }} || bash << EOF
echo DO NOT USE SECRET
echo 'String getValid(String vToken) { return vToken; }' > wsalt.dart
EOF
- name: Analyze
run: flutter analyze --no-fatal-infos

ios-build:
runs-on: macos-latest
steps:
Expand All @@ -15,11 +48,12 @@ jobs:

- uses: subosito/flutter-action@v2
with:
# flutter-version: '2.5.2'
channel: 'stable'

- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Preprocess
run: |
cd lib/server
Expand All @@ -33,6 +67,7 @@ jobs:
EOF
cd ../..
python3 preprocess-ios.py
- name: Podfile
run: |
cd ios
Expand All @@ -42,13 +77,15 @@ jobs:
pod install
pod update
cd ..
- name: Build
run: |
flutter build ios --release --no-codesign
mkdir -p Payload
mv ./build/ios/iphoneos/Runner.app Payload
zip -r -y Payload.zip Payload/Runner.app
mv Payload.zip Payload.ipa
- name: Upload IPA
uses: actions/upload-artifact@v2
with:
Expand All @@ -65,13 +102,16 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: '12.x'

- uses: subosito/flutter-action@v1
with:
# flutter-version: '2.5.2'
channel: 'stable'

- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Preprocess
run: |
cd lib/server
Expand All @@ -85,12 +125,14 @@ jobs:
EOF
cd ../..
python3 preprocess-android.py
- name: Build
run: |
flutter clean
flutter build apk --release
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: apk-build
path: ./build/app/outputs/apk/release/app-release.apk
path: ./build/app/outputs/apk/release/app-release.apk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class PositionedList extends StatefulWidget {
/// See [ScrollView.reverse].
final bool reverse;

/// {@template flutter.widgets.scroll_view.shrinkWrap}
/// Whether the extent of the scroll view in the [scrollDirection] should be
/// determined by the contents being viewed.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ class ScrollablePositionedList extends StatefulWidget {
/// See [ScrollView.reverse].
final bool reverse;

/// {@template flutter.widgets.scroll_view.shrinkWrap}
/// Whether the extent of the scroll view in the [scrollDirection] should be
/// determined by the contents being viewed.
///
Expand Down

0 comments on commit 6389450

Please sign in to comment.