From dc94e98aa05d2d5d213ef19859f8aff0ad94c304 Mon Sep 17 00:00:00 2001 From: Benny Samir Hierl Date: Fri, 4 Mar 2022 22:20:30 +0100 Subject: [PATCH] ... Signed-off-by: Benny Samir Hierl --- .github/workflows/ci.yml | 12 +++++------- components.d.ts | 2 +- package.json | 2 +- vite.config.ts | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d1c488..cc0bad6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,13 +31,11 @@ jobs: run: npm ci - name: Unit tests run: npm run test:unit:ci - # - name: Test Report - # uses: dorny/test-reporter@v1 - # if: success() || failure() - # with: - # name: Vitest Tests - # path: reports/unittest.json - # reporter: mocha-json + - name: Publish Unit Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + if: always() + with: + files: reports/*.xml docker: runs-on: ubuntu-latest needs: diff --git a/components.d.ts b/components.d.ts index 2bbcf17..0bdd5e8 100644 --- a/components.d.ts +++ b/components.d.ts @@ -36,4 +36,4 @@ declare module 'vue' { } } -export { } +export {} diff --git a/package.json b/package.json index e4c78fd..5f8b558 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build:backend": "prisma generate && tsc -p tsconfig.backend.json --outDir dist", "preview": "vite preview --port 5050", "test:unit": "vitest --environment jsdom", - "test:unit:ci": "vitest --environment jsdom --run --reporter=json", + "test:unit:ci": "vitest --environment jsdom --run --reporter=junit", "coverage": "vitest run --environment jsdom --coverage", "typecheck": "vue-tsc --noEmit", "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", diff --git a/vite.config.ts b/vite.config.ts index 26d47e2..f8e2cca 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -21,6 +21,6 @@ export default defineConfig({ outDir: 'dist/static', }, test: { - outputFile: 'reports/unittest.json', + outputFile: 'reports/unittest.xml', }, })