Compare commits
2
Commits
15b5cce8cc
...
v1.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0f0bff65a | ||
|
|
75661f7443 |
No files matched your search
@@ -46,7 +46,9 @@ jobs:
|
||||
- if: ${{ inputs.is_pull_request == false }}
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
fetch-depth: 2
|
||||
# Full history: before_sha may be many commits behind the new tip
|
||||
# (multi-commit pushes) and must exist locally for git diff.
|
||||
fetch-depth: 0
|
||||
- id: detect
|
||||
name: Detect changed paths per module
|
||||
env:
|
||||
@@ -80,7 +82,14 @@ jobs:
|
||||
else
|
||||
after="${HEAD_SHA:-$(git rev-parse HEAD)}"
|
||||
before="$BEFORE_SHA"
|
||||
# Guard: a stale/unresolvable before_sha must not fail the pipeline.
|
||||
if [ -n "$before" ] && [ "$before" != "0000000000000000000000000000000000000000" ]; then
|
||||
if ! git cat-file -e "$before^{commit}" 2>/dev/null; then
|
||||
echo "::warning::before_sha $before not resolvable, falling back to HEAD~1"
|
||||
before=""
|
||||
fi
|
||||
fi
|
||||
if [ -n "$before" ]; then
|
||||
FILES="$(git diff --name-only "$before" "$after")"
|
||||
elif git rev-parse --verify HEAD~1 >/dev/null 2>&1; then
|
||||
FILES="$(git diff --name-only HEAD~1 HEAD)"
|
||||
@@ -258,9 +267,8 @@ jobs:
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
sh scripts/ci/pnpm-ci.sh
|
||||
pnpm --filter @evofw/api run typecheck
|
||||
pnpm --filter @evofw/db run typecheck
|
||||
pnpm --filter @evofw/shared run typecheck
|
||||
# turbo builds @evofw/{shared,db} first — api typecheck resolves their dist types
|
||||
pnpm exec turbo run typecheck --filter=@evofw/api --filter=@evofw/db --filter=@evofw/shared
|
||||
pnpm exec turbo run test --filter=@evofw/api --filter=@evofw/shared
|
||||
pnpm exec turbo run build --filter=@evofw/api
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
"test": {
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
"typecheck": {
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
"lint": {}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user