fix merging rules, css selector validation, experimental prefix remov… #262
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/coverage.yml | |
name: Test Coverage | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Your original steps | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- name: Install | |
run: npm install | |
- name: Test and Coverage | |
run: npm run test:cov # or npm run coverage | |
# Add this | |
- name: Update Coverage Badge | |
# GitHub actions: default branch variable | |
# https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable | |
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) | |
uses: we-cli/coverage-badge-action@main |