From df4845044065e984b39d29c079a50fd259eb26dd Mon Sep 17 00:00:00 2001
From: Oliver Walters <oliver.henry.walters@gmail.com>
Date: Sat, 21 May 2022 19:33:01 +1000
Subject: [PATCH] Use coveralls github action

---
 .github/workflows/ci.yaml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index d8b97092..962e9ae7 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -35,13 +35,14 @@ jobs:
         run: |
           cd lib/l10n
           python3 collect_translations.py
-      - run: flutter pub get
-      - run: cp lib/dummy_dsn.dart lib/dsn.dart
-      - run: flutter analyze
       - name: Run Unit Tests
         run: |
-          apt-get install lcov
-          pip install -Ur requirements.txt
+          cp lib/dummy_dsn.dart lib/dsn.dart
+          flutter pub get
+          flutter analyze
           flutter test --coverage
-          genhtml coverage/lcov.info -o coverage/html
-          coveralls
+
+      - name: Coveralls
+        uses: coverallsapp/github-action@master
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}