Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Updated Build Worklfow
Browse files Browse the repository at this point in the history
  • Loading branch information
Teifun2 committed Aug 20, 2023
1 parent f70dc22 commit c2cc936
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
name: "Build"
on:
pull_request:
types: [review_requested, ready_for_review]
workflow_dispatch:
push:
branches: [ "develop", "main" ]
pull_request:
types: [ "review_requested", "ready_for_review" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '12.x'
distribution: 'adopt'
- uses: subosito/flutter-action@v2.10.0
with:
channel: 'stable'
- run: flutter pub get
- run: flutter build apk --debug
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '12.x'
distribution: 'adopt'
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
architecture: x64
# - run: git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.13.0-x64
- run: flutter pub get
# - run: flutter analyze --fatal-infos ./
- run: dart format -o none --set-exit-if-changed ./
- run: flutter test
- run: flutter build apk
- run: flutter build appbundle

0 comments on commit c2cc936

Please sign in to comment.