-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 970 Bytes
/
test.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
name: Test
on:
pull_request:
types:
- opened
- synchronize
branches:
- 'master'
- 'dev'
paths-ignore:
- '**.md'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create files from secrets
env:
DOWNLOAD_OPTIONS: ${{ secrets.DOWNLOAD_OPTIONS }}
FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }}
run: |
echo "$DOWNLOAD_OPTIONS" > ./lib/utils/download_options.dart
echo "$FIREBASE_OPTIONS" > ./lib/firebase_options.dart
- name: Flutter set up
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter --version
- name: Flutter get packages
run: flutter pub get
- name: Flutter code generation
run: dart run build_runner build --delete-conflicting-outputs
- name: Flutter test
run: flutter test -j 1