Skip to content

feat(src): size report #28

feat(src): size report

feat(src): size report #28

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 -n '/^=============================== Coverage summary ===============================/,/^================================================================================/p' \
> coverage.txt
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat coverage.txt >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY