forked from pebble-dev/mobile-app
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.07 KB
/
nightly.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
name: Android Nightly
on:
push:
paths:
- 'android/**'
- 'lib/**'
- 'lang/**'
- 'fonts/**'
- 'pubspec*'
- 'pigeons/**'
- 'test/**'
- '.github/workflows/nightly.yml'
jobs:
build:
if: github.repository == 'pebble-dev/mobile-app'
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- run: dart pub global activate fvm
- run: fvm install
- run: fvm flutter pub get
- run: fvm flutter analyze --no-fatal-infos
- name: Flutter test
continue-on-error: true
run: fvm flutter test
- run: fvm flutter build apk --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v1
with:
name: debug-apk
path: build/app/outputs/apk/debug/app-debug.apk
- name: Upload golden failures
uses: actions/upload-artifact@v1
with:
name: goldens-failures
path: test/components/failures/