From ca5be6b23e230b3e9a903464ad46eb3a13b1ff2d Mon Sep 17 00:00:00 2001 From: Sofia Toro Date: Thu, 8 Aug 2024 15:05:42 -0400 Subject: [PATCH] :green_heart: create github action for testing --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml 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