Skip to content

Commit 8104e87

Browse files
committed
ci: 🎡 add test-summary/action to ci
1 parent ac3aa9e commit 8104e87

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

‎.github/workflows/monorepo-validate.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454

5555
test:
5656
name: Test
57+
env:
58+
# junit test report used by test-summary/action to add test summary
59+
CREATE_JUNIT_TEST_REPORT: true
5760
needs: [lint]
5861
runs-on: ${{ fromJSON(vars.RUNNER) }}
5962
timeout-minutes: 15
@@ -72,3 +75,8 @@ jobs:
7275
cache-dependency-path: '**/pnpm-lock.yaml'
7376
- run: pnpm install --offline
7477
- run: pnpm test
78+
- name: Test Summary
79+
if: always()
80+
uses: test-summary/action@v2
81+
with:
82+
paths: "**/test-output/junit.xml"

‎addons/api/testem.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
* Copyright (c) HashiCorp, Inc.
33
* SPDX-License-Identifier: BUSL-1.1
44
*/
5+
/* eslint-disable n/no-extraneous-require */
56

67
'use strict';
78
const MultiReporter = require('testem-multi-reporter');
89
const JUnitReporter = require('testem-gitlab-reporter');
910
const fs = require('fs');
1011

11-
// testem is provided by ember-cli and is not an explicit dependency
12-
// eslint-disable-next-line n/no-extraneous-require
1312
const TAPReporter = require('testem/lib/reporters/tap_reporter');
1413

1514
const multiReporterConfig = {

0 commit comments

Comments
 (0)