diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fed1d4d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Testing +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install Flutter + uses: subosito/flutter-action@v1.3.2 + - name: Install app dependencies + run: flutter pub get + - name: Test app + run: flutter test --coverage + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: coverage/lcov.info