- modify shrunk body of list #280
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'lib/**' | |
- 'tests/**' | |
- 'pnpm-lock.yaml' | |
- 'package.json' | |
- 'jest.config.js' | |
- '.eslintrc' | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.x.x | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm lint | |
- name: Unit & Integration tests | |
run: pnpm jest | |
- name: JS Code Coverage Summary Report | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: romeovs/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
lcov-file: ./outputs/coverage/lcov.info | |
delete-old-comments: true | |
title: JS Code Coverage | |
- name: JS coverage check | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: VeryGoodOpenSource/[email protected] | |
with: | |
min_coverage: 70 | |
path: ./outputs/coverage/lcov.info |