This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
Cluster support #247
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: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build_flutter: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
package: ["packages/atlas", "packages/google_atlas"] | |
channel: ["stable"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: ${{ matrix.channel }} | |
flutter-version: '2.2.3' | |
- name: Install dependencies | |
run: | | |
package_str=${{ matrix.package }} | |
codecov_flag="${package_str//packages\/}" | |
echo "CODECOV_FLAG=${codecov_flag}" >> "$GITHUB_ENV" | |
flutter packages get | |
working-directory: ${{ matrix.package }} | |
- name: Analyze | |
run: flutter analyze | |
working-directory: ${{ matrix.package }} | |
- name: Run tests | |
run: flutter test --coverage --coverage-path coverage/lcov.info | |
working-directory: ${{ matrix.package }} | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
flags: ${{ env.CODECOV_FLAG }} | |
file: ./${{ matrix.package }}/coverage/lcov.info |