Skip to content

chore(deps): bump the npm group with 5 updates #12

chore(deps): bump the npm group with 5 updates

chore(deps): bump the npm group with 5 updates #12

Workflow file for this run

name: ci
on:
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os:
- macos-15
- ubuntu-24.04
- windows-2025
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.1
- name: Setup Volta
uses: volta-cli/action@v4.2.1
- name: Install dependencies
run: npm ci
- name: Check for linting errors
run: npm run lint
- name: Run tests with coverage
id: coverage
shell: bash
run: |
{ npm t || true; } \
| sed 's/\x1b\[[0-9;]*m//g' \
| awk '
/start of coverage report/ {printing=1; next}
/end of coverage report/ {printing=0}
printing
' > coverage.txt
echo "COVERAGE<<EOF" >> $GITHUB_OUTPUT
cat coverage.txt >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Convert coverage to markdown
id: markdown
shell: bash
run: |
{
echo "### 📊 Coverage Report — ${{ matrix.os }}"
echo
echo "| File | Line % | Branch % | Funcs % | Uncovered Lines |"
echo "|------|--------|----------|---------|------------------|"
grep '|' coverage.txt | \
grep -vE "file\s*\|\s*line|----" | \
while read -r line; do
clean=$(echo "$line" | sed 's/^ℹ\s*//' | tr -s ' ')
echo "| ${clean// | / | } |"
done
echo
} > coverage.md
echo "MARKDOWN<<EOF" >> $GITHUB_OUTPUT
cat coverage.md >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Comment on PR
uses: marocchino/sticky-pull-request-comment@v2
with:
key: coverage-${{ matrix.os }}
header: "Coverage Report – ${{ matrix.os }}"
message: ${{ steps.markdown.outputs.MARKDOWN }}