chore/refactor-options (#88) #542
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: Build | |
on: | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
push: | |
branches: | |
- main | |
- dev | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1.6.4 | |
# Dart | |
- name: Install dependencies | |
run: dart pub get | |
working-directory: ./packages/solidart | |
# Flutter | |
- uses: subosito/flutter-action@v2.16.0 | |
with: | |
channel: "stable" | |
- name: Install dependencies | |
run: flutter pub get | |
working-directory: ./packages/flutter_solidart | |
- name: Install melos | |
run: dart pub global activate melos | |
- name: Install VeryGoodCLI | |
run: dart pub global activate very_good_cli | |
- name: Analyze packages | |
run: melos run analyze | |
- name: Test packages | |
run: melos run test | |
- name: Combine coverage | |
run: melos run combine_coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} |