Skip to content

Merge pull request #8 from demola234:ci/cd #2

Merge pull request #8 from demola234:ci/cd

Merge pull request #8 from demola234:ci/cd #2

Workflow file for this run

name: Main
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: unit-test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/[email protected]
with:
flutter_channel: stable
flutter_version: 3.0.0
- name: Install dependencies
run: flutter pub get
- name: Build APK
run: flutter build apk --split-per-abi
- name: Run unit tests
run: flutter test --coverage
- name: Upload to code coverage
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: coverage/lcov.info