From 5257cef24a202ed82c7ceeb882f1543cea664470 Mon Sep 17 00:00:00 2001 From: Max Eliseev Date: Tue, 22 Nov 2022 18:03:04 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20gha=20=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BF=D1=83=D1=81=D0=BA=D0=B0=20Jest=20=D1=82=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=B5=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=BD=D0=B0=20pnpm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test-report.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) 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: