|
| 1 | +name: Kotlin Forced-Mode Preview |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [main] |
| 6 | + paths: |
| 7 | + - 'gitnexus/src/core/ingestion/languages/kotlin/**' |
| 8 | + - 'gitnexus/src/core/ingestion/scope-resolution/pipeline/registry.ts' |
| 9 | + - 'gitnexus/test/integration/resolvers/kotlin.test.ts' |
| 10 | + |
| 11 | +permissions: |
| 12 | + contents: read |
| 13 | + |
| 14 | +jobs: |
| 15 | + kotlin-forced-preview: |
| 16 | + name: kotlin forced-mode preview |
| 17 | + runs-on: ubuntu-latest |
| 18 | + timeout-minutes: 20 |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 21 | + - uses: ./.github/actions/setup-gitnexus |
| 22 | + with: |
| 23 | + build: 'true' |
| 24 | + |
| 25 | + - name: Run forced Kotlin resolver tests (non-blocking) |
| 26 | + id: preview |
| 27 | + shell: bash |
| 28 | + continue-on-error: true |
| 29 | + working-directory: gitnexus |
| 30 | + run: >- |
| 31 | + REGISTRY_PRIMARY_KOTLIN=1 |
| 32 | + npx vitest run test/integration/resolvers/kotlin.test.ts |
| 33 | + --reporter=default |
| 34 | + --reporter=json |
| 35 | + --outputFile=kotlin-forced-preview-results.json |
| 36 | +
|
| 37 | + - name: Publish Kotlin forced-mode preview summary |
| 38 | + if: always() |
| 39 | + shell: bash |
| 40 | + working-directory: gitnexus |
| 41 | + run: | |
| 42 | + set -euo pipefail |
| 43 | +
|
| 44 | + RESULT_FILE="kotlin-forced-preview-results.json" |
| 45 | + TOTAL=0 |
| 46 | + PASSED=0 |
| 47 | + FAILED=0 |
| 48 | + SKIPPED=0 |
| 49 | +
|
| 50 | + if [[ -f "$RESULT_FILE" ]]; then |
| 51 | + TOTAL=$(jq -r '.numTotalTests // 0' "$RESULT_FILE") |
| 52 | + PASSED=$(jq -r '.numPassedTests // 0' "$RESULT_FILE") |
| 53 | + FAILED=$(jq -r '.numFailedTests // 0' "$RESULT_FILE") |
| 54 | + SKIPPED=$(jq -r '.numPendingTests // 0' "$RESULT_FILE") |
| 55 | + else |
| 56 | + echo "::warning title=Kotlin forced-mode preview::Result JSON not found (${RESULT_FILE})" |
| 57 | + fi |
| 58 | +
|
| 59 | + { |
| 60 | + echo "### Kotlin forced-mode preview (\`REGISTRY_PRIMARY_KOTLIN=1\`)" |
| 61 | + echo "" |
| 62 | + echo "| Total | Passed | Failed | Skipped |" |
| 63 | + echo "|------:|-------:|-------:|--------:|" |
| 64 | + echo "| ${TOTAL} | ${PASSED} | ${FAILED} | ${SKIPPED} |" |
| 65 | + echo "" |
| 66 | + echo "Non-blocking preview only. Scope-parity required gate remains unchanged." |
| 67 | + } >> "$GITHUB_STEP_SUMMARY" |
| 68 | +
|
| 69 | + echo "::notice title=Kotlin forced-mode preview::total=${TOTAL}, passed=${PASSED}, failed=${FAILED}, skipped=${SKIPPED}" |
0 commit comments