Skip to content

Commit

Permalink
fix(release): fixed PR jobs to use yarn instead
Browse files Browse the repository at this point in the history
  • Loading branch information
erick-martins committed Aug 2, 2023
1 parent 8f05edd commit e08c3e2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,15 @@ jobs:

coverage:
name: code coverage
permissions:
checks: write
pull-requests: write
contents: write

runs-on: ubuntu-latest
needs: [ language ]
if: "!contains(github.event.head_commit.message, 'skip ci')"

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -69,12 +75,18 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Find PR number
id: findPr
uses: jwalton/gh-find-current-pr@v1

- name: Coverage report
uses: ArtiomTr/jest-coverage-report-action@v2
with:
package-manager: yarn
test-script: yarn test:coverage --coverageReporters json-summary
test-script: yarn test:coverage --json --coverage --testLocationInResults --outputFile=report.json
output: report-markdown
prnumber: ${{ steps.findPr.outputs.number }}

- name: Post coverage report
uses: marocchino/sticky-pull-request-comment@v2
with:
Expand Down

0 comments on commit e08c3e2

Please sign in to comment.