Skip to content

tests and coverage + fix & english translation #1

tests and coverage + fix & english translation

tests and coverage + fix & english translation #1

Workflow file for this run

name: Update Coverage Badge
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
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: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests with coverage
run: npm run coverage
- name: Generate coverage badges
run: npx coverage-badges --source coverage/coverage-summary.json --output coverage/badges.svg
- 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 }}