From ed87b4c4cdb8211341d2c643e05d3384147022f0 Mon Sep 17 00:00:00 2001 From: woksin Date: Wed, 13 Sep 2023 08:57:27 +0200 Subject: [PATCH] Test report --- .github/workflows/ci.yml | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f68669..6ba5bdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,3 +22,10 @@ jobs: name: Install dependencies - run: bun run ci name: Build, Test and Lint + - name: Test Report + uses: dorny/test-reporter@v1 + if: success() || failure() # run this step even if previous step failed + with: + name: Test Report + path: test-results.json + reporter: mocha-json diff --git a/package.json b/package.json index cbb5287..73d3385 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "build": "tsc -b && yarn test:clean && npx ncc build Distribution/action.js --out release", "build:ci": "tsc -b && yarn lint", - "test": "mocha", + "test": "mocha --reporter json > test-results.json", "test:clean": "rimraf Distribution/**/for_*", "lint": "eslint --quiet --ext .ts ./", "lint:fix": "eslint --quiet --ext .ts ./ --fix",