From 0fd9cce3ed49a864fb4d999032e8972692cf4669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Overg=C3=A5rd=20Nielsen?= Date: Wed, 24 Jan 2024 19:08:13 +0100 Subject: [PATCH] Publish Test Report from flutter integration test --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .github/workflows/flutter-desktop-tests.yml | 10 ++++++++++ 2 files changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 73fca95b05..999703a2ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -328,6 +328,16 @@ jobs: --suppress-analytics working-directory: ./flutter/realm_flutter/tests + - name: Publish Test Report + uses: dorny/test-reporter@v1.7.0 + if: success() || failure() + with: + name: Test Results Flutter iOS + path: test-results.json + reporter: dart-json + only-summary: true + working-directory: ./flutter/realm_flutter/tests + cleanup-cluster-flutter-ios: name: Cleanup Cluster for Flutter iOS uses: ./.github/workflows/terminate-baas.yml @@ -427,6 +437,16 @@ jobs: script: flutter test integration_test/all_tests.dart --dart-define=BAAS_BAASAAS_API_KEY=$BAAS_BAASAAS_API_KEY --dart-define=BAAS_DIFFERENTIATOR=$BAAS_DIFFERENTIATOR --file-reporter=json:test-results.json --suppress-analytics working-directory: ./flutter/realm_flutter/tests + - name: Publish Test Report + uses: dorny/test-reporter@v1.7.0 + if: success() || failure() + with: + name: Test Results Flutter Android + path: test-results.json + reporter: dart-json + only-summary: true + working-directory: ./flutter/realm_flutter/tests + cleanup-cluster-flutter-android: name: Cleanup Cluster for Flutter Android uses: ./.github/workflows/terminate-baas.yml diff --git a/.github/workflows/flutter-desktop-tests.yml b/.github/workflows/flutter-desktop-tests.yml index 1b6ee288af..f643ab1f68 100644 --- a/.github/workflows/flutter-desktop-tests.yml +++ b/.github/workflows/flutter-desktop-tests.yml @@ -82,3 +82,13 @@ jobs: --suppress-analytics shell: bash working-directory: ./flutter/realm_flutter/tests + + - name: Publish Test Report + uses: dorny/test-reporter@v1.7.0 + if: success() || failure() + with: + name: Test Results Flutter ${{ inputs.os }} ${{ inputs.architecture }} + path: test-results.json + reporter: dart-json + only-summary: true + working-directory: ./flutter/realm_flutter/tests