-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.39 KB
/
pr.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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: build
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'
- name: Disable analytics
run: flutter --disable-analytics
working-directory: src/pocket_note
- name: Generate code from annotations, and libraries
run: dart run build_runner build --delete-conflicting-outputs
working-directory: src/pocket_note
- name: Build
run: flutter build apk
working-directory: src/pocket_note
- name: Run unit tests
run: flutter test
working-directory: src/pocket_note
- name: Deploy to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID}}
token: ${{secrets.FIREBASE_TOKEN}}
serviceCredentialsFileContent: ${{secrets.CREDENTIAL_FILE_CONTENT}}
groups: testers
file: src/pocket_note/build/app/outputs/apk/release/app-release.apk