Skip to content

Develop

Develop #146

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