-
Notifications
You must be signed in to change notification settings - Fork 64
57 lines (48 loc) · 1.36 KB
/
default_workflow.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
52
53
54
55
56
57
name: Default Workflow
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.19'
channel: 'stable'
cache: true
- name: Cache Flutter packages
uses: actions/cache@v2
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-cache-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-cache-
- name: Install Pub Dependencies
run: flutter pub get
- name: Build with secrets
run: flutter pub run build_runner build --delete-conflicting-outputs
env:
FDC_API_KEY: ${{ secrets.FDC_API_KEY }}
SENTRY_DNS: ${{ secrets.SENTRY_DNS }}
SUPABASE_PROJECT_ANON_KEY: ${{ secrets.SUPABASE_PROJECT_ANON_KEY }}
SUPABASE_PROJECT_URL: ${{ secrets.SUPABASE_PROJECT_URL }}
- name: Analyze Code
run: flutter analyze
- name: Run Tests
run: flutter test