-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 867 Bytes
/
dart.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Dart
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.5'
- run: cd src/pocket_note && flutter --disable-analytics
- run: cd src/pocket_note && flutter test
- run: cd src/pocket_note && dart run build_runner build --delete-conflicting-outputs
- run: cd src/pocket_note && flutter build apk
- run: cd src/pocket_note && flutter build appbundle