|
8 | 8 |
|
9 | 9 | concurrency: |
10 | 10 | group: ci-${{ github.ref }} |
11 | | - cancel-in-progress: true |
| 11 | + # altimate_change start — let main runs finish. A new push to a PR still cancels |
| 12 | + # that PR's older run. On main, each merge used to cancel the run before it, so a |
| 13 | + # day of quick merges could leave main with no completed run. A main run that is |
| 14 | + # still waiting to start does give way to a newer one, so the latest commit is |
| 15 | + # always the one tested. |
| 16 | + cancel-in-progress: ${{ github.event_name == 'pull_request' }} |
| 17 | + # altimate_change end |
12 | 18 |
|
13 | 19 | permissions: |
14 | 20 | contents: read |
|
30 | 36 | drivers: ${{ steps.filter.outputs.drivers }} |
31 | 37 | dbt-tools: ${{ steps.filter.outputs.dbt-tools }} |
32 | 38 | installer: ${{ steps.filter.outputs.installer }} |
| 39 | + # altimate_change start — the Typecheck job's own filter (see `typecheck:` below) |
| 40 | + typecheck: ${{ steps.filter.outputs.typecheck }} |
| 41 | + # altimate_change end |
33 | 42 | steps: |
34 | 43 | - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 |
35 | 44 |
|
|
63 | 72 | - 'turbo.json' |
64 | 73 | - 'bunfig.toml' |
65 | 74 | # altimate_change end |
| 75 | + # altimate_change start — more inputs that change typecheck and test results. |
| 76 | + # `bun install` applies patches/ (some edit typed SDKs' .d.ts files), and |
| 77 | + # bun.lock records only the patch paths, so editing a patch changes nothing |
| 78 | + # above. opencode's tests import these repo-root scripts, and opencode's |
| 79 | + # tsconfig compiles its tests. |
| 80 | + - 'patches/**' |
| 81 | + - 'script/check-tracker-leaks.ts' |
| 82 | + - 'script/upstream/**' |
| 83 | + # altimate_change end |
| 84 | + # altimate_change start — a change to this workflow runs the Typecheck job on |
| 85 | + # its own PR, without also starting the 60-minute TypeScript test job. |
| 86 | + typecheck: |
| 87 | + - '.github/workflows/ci.yml' |
| 88 | + # altimate_change end |
66 | 89 | drivers: |
67 | 90 | - 'packages/drivers/src/**' |
68 | 91 | - 'packages/opencode/src/altimate/native/connections/**' |
@@ -145,7 +168,7 @@ jobs: |
145 | 168 | typecheck: |
146 | 169 | name: Typecheck |
147 | 170 | needs: changes |
148 | | - if: needs.changes.outputs.typescript == 'true' || github.event_name == 'push' |
| 171 | + if: needs.changes.outputs.typescript == 'true' || needs.changes.outputs.typecheck == 'true' || github.event_name == 'push' |
149 | 172 | runs-on: ubuntu-latest |
150 | 173 | timeout-minutes: 15 |
151 | 174 | permissions: |
|
0 commit comments