-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.39 KB
/
push-checks-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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]"