Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Merging getScreenShot and takeSnapshot methods #256

Merging getScreenShot and takeSnapshot methods

Merging getScreenShot and takeSnapshot methods #256

Workflow file for this run

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