diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 44909106..2526e214 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,11 +5,15 @@ on: branches: - main jobs: - run_comfy_pr: + comfy_pr_test: runs-on: ubuntu-latest + permissions: + contents: write timeout-minutes: 10 steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} # setup comfy-cli - uses: actions/setup-python@v5 with: @@ -30,6 +34,17 @@ jobs: # setup comfy-pr # Run Comfy-PR Tests - run: bun i + - run: bunx oxlint --fix + - run: bunx oxfmt --write + - name: Commit lint/format fixes + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + if ! git diff --quiet; then + git add -A + git commit -m "style: auto-fix lint and formatting" + git push + fi - run: bun test timeout-minutes: 8 env: