Skip to content

Commit

Permalink
fix: gha для запуска Jest тестов обновлен и переведен на pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mxseev committed Nov 22, 2022
1 parent 068daae commit 5257cef
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/test-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5257cef

Please sign in to comment.