Skip to content

feat: adds coverage reporting on PR #20

feat: adds coverage reporting on PR

feat: adds coverage reporting on PR #20

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
CI:
runs-on: ubuntu-latest
permissions:
# Required for pushing to the repository
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm check
- name: Build
run: pnpm build
- name: Commit to main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Build blocks-manifest.json" || exit 0
git push origin main