generated from blueberry-team/blueberry_template_deprecated
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.08 KB
/
blueberry-build-test-action.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
name: blueberry-build-test-action
on: [ push ]
jobs:
test:
name: Run Flutter Tests
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Decode firebase_option
env:
firebase_options_dart: ${{secrets.FIREBASE_OPTION}}
run: echo "$firebase_options_dart" > lib/firebase_options.dart
- name: Create .env file
env:
ENV_CONTENT: ${{ secrets.ENV_CONTENT }}
run: echo "$ENV_CONTENT" > .env
- name: 'Set Flutter Version Latest'
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.0'
- name: 'Checkout Flutter 3.22.0'
shell: bash
run: |
cd $FLUTTER_ROOT;
git fetch --tags;
git checkout 3.22.0;
flutter --version;
- name: Install dependencies
run: flutter pub get
- name: Generate freezed files
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Run tests
run: flutter test
env:
CI: true