From 242a55956c9c43358f6c38183e38f1dba4dbacbe Mon Sep 17 00:00:00 2001 From: IagoAntunes Date: Tue, 19 Sep 2023 15:37:45 -0300 Subject: [PATCH] =?UTF-8?q?CI:=20Configura=C3=A7=C3=A3o=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..74b5b47 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: + - develop + - main + pull_request: + branches: + - develop + - main + +jobs: + flutter_test: + name: Run Flutter analyze and 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 + with: + channel: "stable" + - run: flutter pub get + - run: flutter analyze + - run: flutter format --dry-run --set-exit-if-changed lib/ + - run: flutter format --dry-run --set-exit-if-changed test/ + - run: flutter test --coverage + - run: flutter test --machine > test-results.json + - uses: dorny/test-reporter@v1.4.2 + with: + name: test-results + path: test-results.json + reporter: flutter-json + - uses: VeryGoodOpenSource/very_good_coverage@v1.1.1 + with: + min_coverage: 0 \ No newline at end of file