From 1617933c69ed23420e06518208510e4ec897d8f4 Mon Sep 17 00:00:00 2001 From: Sebastien Flory Date: Thu, 23 Jan 2025 10:12:34 +0100 Subject: [PATCH] Upg: Switch the test reporter (#10173) * Switch the test reporter * fix report path * upgrade summary format * Upg: improve caching and naming * Fix: failing test --- .github/workflows/build-and-lint-front.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-lint-front.yml b/.github/workflows/build-and-lint-front.yml index 1d08b05653a3..a255c8a669b0 100644 --- a/.github/workflows/build-and-lint-front.yml +++ b/.github/workflows/build-and-lint-front.yml @@ -12,7 +12,7 @@ permissions: actions: read checks: write jobs: - check-eslint: + all-checks: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -20,7 +20,10 @@ jobs: with: node-version: 20.13.0 cache: "npm" - cache-dependency-path: ./front/package-lock.json + cache-dependency-path: | + ./front/package-lock.json + ./types/package-lock.json + ./sdks/js/package-lock.json - name: Build Types working-directory: types run: npm install && npm run build @@ -44,10 +47,12 @@ jobs: FRONT_DATABASE_URI: "postgres://test:test@localhost:5433/front_test" NODE_ENV: test run: npx tsx admin/db.ts && npm run test:ci - - name: Tests Report + - name: Build Tests Report if: always() - uses: dorny/test-reporter@1a288b62f8b75c0f433cbfdbc2e4800fbae50bd7 # Specific hash because of https://github.com/dorny/test-reporter/issues/67 + uses: mikepenz/action-junit-report@v5 with: - name: Front Tests # Name of the check run which will be created - path: front/junit*.xml # Path to test results - reporter: jest-junit # Format of test results + report_paths: "**/front/junit*.xml" + detailed_summary: true + flaky_summary: true + group_suite: true + check_name: Tests Report