fix: starter-project was broken in main (#4842)
* fix broken test * ci: Enhance TypeScript test workflow with debug output and refined release condition --------- Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
parent
dd92d9c10c
commit
b9af310abf
2 changed files with 13 additions and 9 deletions
7
.github/workflows/typescript_test.yml
vendored
7
.github/workflows/typescript_test.yml
vendored
|
|
@ -74,6 +74,7 @@ jobs:
|
|||
id: set-matrix
|
||||
run: |
|
||||
# Start with input suites if provided, otherwise empty array
|
||||
echo "Changes filter output: ${{ steps.filter.outputs }}"
|
||||
SUITES='${{ inputs.suites }}'
|
||||
echo "Initial suites: $SUITES"
|
||||
TEST_GREP=""
|
||||
|
|
@ -81,15 +82,15 @@ jobs:
|
|||
RELEASE="${{ inputs.release || 'false' }}"
|
||||
echo "Release build: $RELEASE"
|
||||
|
||||
# if release OR steps.filter.outputs.frontend-tests is true
|
||||
if [[ "$RELEASE" == "true" || "${{ steps.filter.outputs.frontend-tests }}" == "true" ]]; then
|
||||
# Only set to release if it's explicitly a release build
|
||||
if [[ "$RELEASE" == "true" ]]; then
|
||||
SUITES='["release"]'
|
||||
echo "Release build detected - setting suites to: $SUITES"
|
||||
# No grep pattern for release - run all tests
|
||||
TEST_GREP=""
|
||||
else
|
||||
# If input suites were not provided, determine based on changes
|
||||
if [[ "$SUITES" == "[]" ]]; then
|
||||
if [[ "$SUITES" == "[]" ]]; then
|
||||
echo "No input suites provided - determining from changes"
|
||||
TAGS=()
|
||||
# Add suites and tags based on changed files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue