Skip to content

anouncement

anouncement #473

Workflow file for this run

name: CI
on:
push:
paths:
- ".github/workflows/**"
- "lib/**"
- "android/**"
- "ios/**"
- "web/**"
- "pubspec.yaml"
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.2"
channel: "stable"
- name: Setup project
shell: bash
env:
FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }}
run: |
mv lib/firebase_options.example.dart lib/firebase_options.dart
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
#- name: Lint and Analyze code
# run: |
# dart format .
# flutter analyze .
# - name: Run Tests
# run: flutter test
- name: Build debug apk
run: |
flutter build apk --debug
echo "Built apk for version ${APP_VERSION}"
# - uses: actions/upload-artifact@v2
# with:
# name: "TSEC App-nightly-v${{ env.APP_VERSION }}.apk"
# path: build/app/outputs/flutter-apk/app-debug.apk