Skip to content

format and lint + coverage #16

format and lint + coverage

format and lint + coverage #16

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: Lint
run: pnpm test
- 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