From 271aa6e1c315e6385b08aff202c1a0bce6fd8938 Mon Sep 17 00:00:00 2001 From: iamstanlee Date: Thu, 2 Sep 2021 20:03:41 -0700 Subject: [PATCH] adds github CI workflow --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..d5da919 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + test: + name: unit-test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: "12.x" + - uses: subosito/flutter-action@v1.5.3 + with: + flutter-version: 2.0.4 + - name: Install dependencies + run: flutter pub get + - name: Analyze Dart code + run: flutter analyze -v + - name: Run tests + run: flutter test --coverage + - name: Coveralls + uses: coverallsapp/github-action@1.1.3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}