Skip to content

Commit

Permalink
Run CI for Flutter beta and stable
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Dec 19, 2023
1 parent 5ff9d6f commit e8d27e5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@ on:
push:
branches: [main]
schedule:
- cron: '0 4 * * *'
- cron: 0 4 * * *

env:
JAVA_VERSION: 12.x
FLUTTER_CHANNEL: beta

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
Expand All @@ -23,7 +25,7 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
- uses: subosito/flutter-action@v2
with:
channel: ${{ env.FLUTTER_CHANNEL }}
channel: ${{ matrix.flutter-channel }}

- run: flutter pub get

Expand All @@ -32,6 +34,9 @@ jobs:
build-example:
name: Build example
runs-on: ubuntu-latest
strategy:
matrix:
flutter-channel: [stable, beta]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
Expand All @@ -40,7 +45,7 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
- uses: subosito/flutter-action@v2
with:
channel: ${{ env.FLUTTER_CHANNEL }}
channel: ${{ matrix.flutter-channel }}

- run: flutter pub get
working-directory: example
Expand All @@ -51,5 +56,5 @@ jobs:
- name: Upload APK as artifact
uses: actions/upload-artifact@v4
with:
name: example-apk
name: example-apk-flutter-${{ matrix.flutter-channel }}
path: example/build/app/outputs/apk/release/app-release.apk

0 comments on commit e8d27e5

Please sign in to comment.