diff --git a/.github/workflows/sharded-vitest.yml b/.github/workflows/sharded-vitest.yml index 8cc90e9..a347d67 100644 --- a/.github/workflows/sharded-vitest.yml +++ b/.github/workflows/sharded-vitest.yml @@ -28,18 +28,19 @@ jobs: run: npm ci - name: Run Vitest Tests (Shard ${{ matrix.shard }}/${{ matrix.total-shards }}) + working-directory: ./packages/vitest-sharded continue-on-error: true - run: npx vitest --run --shard=${{ matrix.shard }}/${{ matrix.total-shards }} vitest-sharded-example/tests/** --reporter=junit --outputFile=./vitest-sharded-example/results-${{ matrix.shard }}.xml + run: npx vitest --run --shard=${{ matrix.shard }}/${{ matrix.total-shards }} ./tests/** --reporter=junit --outputFile=.results-${{ matrix.shard }}.xml - - name: Combine Vitest Sharded results - run: node ./scripts/combineResults.js --reports-dir vitest-sharded-example --output-file vitest-sharded-example/currents.results.xml + # - name: Combine Vitest Sharded results + # run: node ./scripts/combineResults.js --reports-dir .results --output-file .results/merged.results.xml - - name: Generate Instance files - run: node scripts/junitXmlToInstanceJson.js --input vitest-sharded-example/currents.results.xml --output vitest-sharded-example/instances + # - name: Generate Instance files + # run: node ../scripts/junitXmlToInstanceJson.js --input .results/currents.results.xml --output .results/instances - - name: Report Vitest Sharded results - env: - CURRENTS_KEY: ${{ secrets.CURRENTS_KEY }} - CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }} - CURRENTS_CI_BUILD_ID: ${{ github.run_id }}-${{ github.run_number }} - run: node scripts/uploadResults.js --report-dir vitest-sharded-example + # - name: Report Vitest Sharded results + # env: + # CURRENTS_KEY: ${{ secrets.CURRENTS_KEY }} + # CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }} + # CURRENTS_CI_BUILD_ID: ${{ github.run_id }}-${{ github.run_number }} + # run: node scripts/uploadResults.js --report-dir vitest-sharded-example