Skip to content

should trigger pipeline (bis) #1

should trigger pipeline (bis)

should trigger pipeline (bis) #1

Workflow file for this run

name: Update Coverage Badge
on:
push:
branches: [ main ]
paths:
- 'src/**'
pull_request:
branches: [ main ]
jobs:
test-and-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm run test:coverage
- name: Commit updated badges
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add coverage/badges.svg
git diff --staged --quiet || git commit -m "🤖 Update coverage badges [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}