chores: add hello world and update redirect uri #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v1 | |
with: | |
channel: "stable" | |
- name: Setup project | |
run: | | |
echo "APP_VERSION=$(grep -Po '(?<=version: )(.*)(?=\+)' pubspec.yaml)" >> $GITHUB_ENV | |
flutter pub get | |
- name: Lint and Analyze code | |
run: | | |
dart format --set-exit-if-changed . | |
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: "Heartry-nightly-v${{ env.APP_VERSION }}.apk" | |
path: build/app/outputs/flutter-apk/app-debug.apk |