|
6 | 6 |
|
7 | 7 | permissions: |
8 | 8 | contents: read |
9 | | - pull-requests: write |
10 | | - issues: read |
11 | | - checks: write |
12 | 9 |
|
13 | 10 | concurrency: |
14 | 11 | group: ci-${{ github.head_ref || github.ref_name }} |
15 | 12 | cancel-in-progress: true |
16 | 13 |
|
17 | 14 | jobs: |
18 | | - lint: |
19 | | - name: "Lint" |
20 | | - runs-on: ubuntu-latest |
21 | | - steps: |
22 | | - - uses: actions/checkout@v4 |
23 | | - - uses: oven-sh/setup-bun@v2 |
24 | | - - run: bun install --frozen-lockfile |
25 | | - - run: bun run lint |
26 | | - |
27 | | - typecheck: |
28 | | - name: "Typecheck" |
29 | | - runs-on: ubuntu-latest |
30 | | - steps: |
31 | | - - uses: actions/checkout@v4 |
32 | | - - uses: oven-sh/setup-bun@v2 |
33 | | - - run: bun install --frozen-lockfile |
34 | | - - run: bun run typecheck |
35 | | - |
36 | | - test: |
37 | | - name: "Test" |
38 | | - runs-on: ubuntu-latest |
39 | | - steps: |
40 | | - - uses: actions/checkout@v4 |
41 | | - - uses: oven-sh/setup-bun@v2 |
42 | | - - run: bun install --frozen-lockfile |
43 | | - - run: bun run test -- --passWithNoTests || echo "No tests" |
44 | | - |
45 | | - review: |
46 | | - name: "AI Review" |
47 | | - needs: [lint, typecheck] |
48 | | - if: github.event_name == 'pull_request' |
49 | | - runs-on: ubuntu-latest |
50 | | - steps: |
51 | | - - uses: actions/checkout@v4 |
52 | | - with: |
53 | | - fetch-depth: 0 |
54 | | - |
55 | | - - name: Code Quality Review |
56 | | - id: review |
57 | | - uses: constellos/claude-code-actions/.github/actions/code-quality-reviewer@main |
58 | | - with: |
59 | | - claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
60 | | - pr_number: ${{ github.event.pull_request.number }} |
61 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
62 | | - |
63 | | - - name: Post review comment |
64 | | - if: always() |
65 | | - uses: constellos/claude-code-actions/.github/actions/review-comment@main |
66 | | - with: |
67 | | - review_name: 'Code Quality' |
68 | | - passed: ${{ steps.review.outputs.passed }} |
69 | | - result_json: ${{ steps.review.outputs.result }} |
70 | | - checks_passed: ${{ steps.review.outputs.checks_passed }} |
71 | | - checks_failed: ${{ steps.review.outputs.checks_failed }} |
72 | | - checks_skipped: ${{ steps.review.outputs.checks_skipped }} |
73 | | - pr_number: ${{ github.event.pull_request.number }} |
74 | | - sha: ${{ github.sha }} |
75 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
| 15 | + CI: |
| 16 | + uses: constellos/.github/.github/workflows/ci-pipeline-reusable.yml@main |
| 17 | + with: |
| 18 | + node_version: '22' |
| 19 | + secrets: inherit |
0 commit comments