Skip to content

Commit 47eea8c

Browse files
committed
ci: add auto lint/format fix and commit to test workflow
1 parent cb3569b commit 47eea8c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/test.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ on:
55
branches:
66
- main
77
jobs:
8-
run_comfy_pr:
8+
comfy_pr_test:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
1012
timeout-minutes: 10
1113
steps:
1214
- uses: actions/checkout@v4
@@ -30,6 +32,17 @@ jobs:
3032
# setup comfy-pr
3133
# Run Comfy-PR Tests
3234
- run: bun i
35+
- run: bunx oxlint --fix
36+
- run: bunx oxfmt --write
37+
- name: Commit lint/format fixes
38+
run: |
39+
git config user.name "github-actions[bot]"
40+
git config user.email "github-actions[bot]@users.noreply.github.com"
41+
if ! git diff --quiet; then
42+
git add -A
43+
git commit -m "style: auto-fix lint and formatting"
44+
git push
45+
fi
3346
- run: bun test
3447
timeout-minutes: 8
3548
env:

0 commit comments

Comments
 (0)