Skip to content

feat(src): size report #27

feat(src): size report

feat(src): size report #27

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'npm'
- name: Install dependencies
run: npm i
- name: Build package
run: npm run build
- name: Run tests with coverage
run: |
npm run test:coverage -- --coverageReporters=text-summary 2>&1 \
| sed '/^=============================== Coverage summary ===============================/d' \
| sed '/^================================================================================/d' \
> coverage.txt
echo "## Coverage Summary" >> $GITHUB_STEP_SUMMARY
cat coverage.txt >> $GITHUB_STEP_SUMMARY