no unit tests #147
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
on: [push, pull_request] | |
name: Build,Test | |
jobs: | |
build_test_ubuntu_macos: | |
name: Build number_inc_dec on stable | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: "stable" | |
- name: Install dependencies | |
run: flutter pub get | |
- run: flutter test test/functionality_test.dart | |
# This separate build_test_windows is done because the golden files are created in windows | |
# Unfortunately these golden files differs in ubuntu & macos implementations and fails the golden tests. | |
# Also the code coverage is only updated here to include the golden tests. | |
build_test_windows: | |
name: Build number_inc_dec on stable | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: "stable" | |
# copied from @rrousselGit's river_pod workflow | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Check format | |
run: dart format --set-exit-if-changed . | |
- name: Analyze | |
run: flutter analyze | |
working-directory: ${{ matrix.package }} | |
- name: Run tests | |
run: flutter test --coverage | |
working-directory: ${{ matrix.package }} | |
- name: Upload coverage to codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |