This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Update khalti SDK to make use of updated APIs #77
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: Analyze, Run Tests & Generate Coverage | |
on: | |
- push | |
- pull_request | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out current repository | |
uses: actions/checkout@v3 | |
- name: Setup Flutter Stable | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Setup melos | |
run: dart pub global activate melos | |
- name: Get package dependencies | |
run: melos bs | |
- name: Analyze packages | |
run: melos analyze | |
- name: Run tests and generate coverage for the khalti_core | |
run: flutter test --coverage | |
working-directory: packages/khalti_core | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
files: ./packages/khalti_core/coverage/lcov.info,./packages/khalti/coverage/lcov.info | |
name: khalti-coverage | |
fail_ci_if_error: true | |
verbose: true |