Skip to content

Merge pull request #102 from North-Two-Five/fix/issue_101 #58

Merge pull request #102 from North-Two-Five/fix/issue_101

Merge pull request #102 from North-Two-Five/fix/issue_101 #58

name: Analytics Flutter Test Code
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build_and_test:
name: Run Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "13.0.13+5"
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.19.0
- name: Get dependencies
run: cd packages/core && flutter pub get
- name: Analyze Dart code
run: cd packages/core && flutter analyze
- name: Run unit tests
run: cd packages/core && flutter test --coverage
- name: Upload coverage to codecov
run: curl -s https://codecov.io/bash
shell: bash