浏览代码

ci: update test runner for vitest (#186)

Bruce MacDonald 6 月之前
父节点
当前提交
a90f02569f
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      .github/workflows/test.yaml
  2. 0 0
      test/index.test.ts

+ 3 - 2
.github/workflows/test.yaml

@@ -16,10 +16,11 @@ jobs:
           node-version: ${{ matrix.node-version }}
           cache: npm
       - run: npm ci
+      - run: npm i -D @vitest/coverage-v8
       - run: npm run lint
-      - run: npm test -- --coverage --coverageDirectory=coverage/results-${{ matrix.node-version }}
+      - run: npm test -- --coverage
       - uses: actions/upload-artifact@v3
         with:
           name: vitest-results-${{ matrix.node-version }}
-          path: coverage/results-${{ matrix.node-version }}/*.xml
+          path: coverage/*
         if: ${{ always() }}

+ 0 - 0
test/index.spec.ts → test/index.test.ts