diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index 3d6bc08..2ea72aa 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -7,16 +7,29 @@ jobs: runs-on: ubuntu-latest env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2.2.4 with: - node-version: "14" + version: 7 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install - - run: npm install - - run: npx jest --ci --testResultsProcessor=jest-junit + - name: Run tests and generate report + run: pnpm exec jest --ci --testResultsProcessor=jest-junit - - name: Test Report + - name: Push report uses: dorny/test-reporter@v1 if: success() || failure() with: