Skip to content

Commit 7afa798

Browse files
jbeckwith-oaicodex
andauthored
refactor(ci): add shared ci success (#76)
Add a CI Success job to the existing test workflow, use the shared first-party action from promptfoo/.github, and keep the current unit and shellcheck jobs intact. Test plan: verify the updated workflow parses and CI Success waits for the existing PR checks. Co-authored-by: Codex <noreply@openai.com>
1 parent 5654ae8 commit 7afa798

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,20 @@ jobs:
3939

4040
- name: Run shellcheck
4141
run: shellcheck --severity=error src/crabcode
42+
43+
ci-success:
44+
name: CI Success
45+
runs-on: ubuntu-latest
46+
needs: [unit, lint]
47+
if: always()
48+
timeout-minutes: 5
49+
permissions:
50+
checks: read
51+
statuses: read
52+
53+
steps:
54+
- name: Wait for all PR checks to succeed
55+
uses: promptfoo/.github/.github/actions/ci-success@main
56+
with:
57+
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
timeout-seconds: 300

0 commit comments

Comments
 (0)