mirror of
https://github.com/stablyai/orca.git
synced 2026-10-25 16:03:53 +00:00
Enforce shrink-only typecheck baselines
This commit is contained in:
@@ -34,6 +34,20 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 2
|
||||
|
||||
- name: Load base mobile diagnostic baseline
|
||||
env:
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git cat-file -e "$BASE_SHA^{commit}"
|
||||
if git cat-file -e "$BASE_SHA:mobile/typecheck-test-diagnostics.json" 2>/dev/null; then
|
||||
base_baseline="$RUNNER_TEMP/typecheck-mobile-base.json"
|
||||
git show "$BASE_SHA:mobile/typecheck-test-diagnostics.json" > "$base_baseline"
|
||||
echo "TYPECHECK_BASELINE_BASE_PATH=$base_baseline" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
|
||||
@@ -209,8 +209,21 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 2
|
||||
persist-credentials: false
|
||||
|
||||
- name: Load base E2E diagnostic baseline
|
||||
env:
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git cat-file -e "$BASE_SHA^{commit}"
|
||||
if git cat-file -e "$BASE_SHA:config/typecheck-e2e-diagnostics.json" 2>/dev/null; then
|
||||
base_baseline="$RUNNER_TEMP/typecheck-e2e-base.json"
|
||||
git show "$BASE_SHA:config/typecheck-e2e-diagnostics.json" > "$base_baseline"
|
||||
echo "TYPECHECK_BASELINE_BASE_PATH=$base_baseline" >> "$GITHUB_ENV"
|
||||
fi
|
||||
|
||||
- uses: ./.github/actions/install-node-dependencies
|
||||
|
||||
# Why: every project is `composite`, so tsc already writes a .tsbuildinfo that lets
|
||||
|
||||
Reference in New Issue
Block a user