fix build #352
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: Run CI | |
on: [push] | |
jobs: | |
test: | |
name: Unit Test For SDK Flagship | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest] | |
flutter: [stable] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: ${{ matrix.flutter }} | |
- run: flutter pub get | |
- run: flutter test --coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1.2.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
build_qa_apk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: ${{ matrix.flutter }} | |
- run: flutter pub get | |
working-directory: example | |
- run: flutter build apk | |
working-directory: example | |
- name: Archive FlagshipQA APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: QA APK | |
path: example/build/app/outputs/flutter-apk/app-release.apk | |
retention-days: 2 |