From cad975117c7a576352f2bf74f0416c3a4813444b Mon Sep 17 00:00:00 2001 From: Ricardo Dalarme Date: Fri, 27 Jan 2023 15:18:05 -0300 Subject: [PATCH] chore(ci): add a workflow to test the code --- .github/workflows/test-report.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test-report.yml diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml new file mode 100644 index 0000000..bbf264f --- /dev/null +++ b/.github/workflows/test-report.yml @@ -0,0 +1,31 @@ +on: + pull_request: + push: +permissions: + id-token: write + contents: read + checks: write +jobs: + test: + name: Test & Report + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + + - name: Get all Flutter Packages + run: flutter pub get + + - name: Run Flutter Test + run: flutter test --machine > test-results.json + + - name: Test Report + uses: dorny/test-reporter@v1 + if: success() || failure() + with: + name: Test Results + path: test-results.json + reporter: dart-json