Skip to content
name: πŸš€ Push Checks Workflow
on:
push:
branches-ignore:
- main
workflow_dispatch:
jobs:
checks:
name: 🫸 Push Checks
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🧬 Setup Biome
uses: biomejs/setup-biome@v2
- name: πŸ‘£ Retrieve Git REF
run: echo "GIT_REF=$(git rev-parse origin/main)" >> $GITHUB_ENV
- name: πŸ› Debug Git REF
run: echo "${{ env.GIT_REF }}"
- name: πŸ’… Format code (with Biome)
continue-on-error: true
run: |
biome check \
--write \
--changed \
--since=${{ env.GIT_REF }} \
--formatter-enabled=true \
--linter-enabled=false \
--organize-imports-enabled=true \
--vcs-enabled=true \
--vcs-use-ignore-file=true \
--no-errors-on-unmatched \
--log-level=warn \
--reporter=github \
.
- name: 🚦 Git Auto Commit Lint fixes (with Biome)
uses: stefanzweifel/[email protected]
with:
commit_message: "chore: lint code with Biome [skip ci]"