-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into nv-5161-implement-workflow-and-step-limits
# Conflicts: # .source # packages/shared/src/types/feature-flags.ts
- Loading branch information
Showing
64 changed files
with
1,259 additions
and
539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Check for .only flags | ||
|
||
on: | ||
pull_request: | ||
branches: [ "**" ] | ||
|
||
jobs: | ||
check-only: | ||
name: Check for .only in tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check for .only flags | ||
run: | | ||
chmod +x .github/workflows/scripts/stop-only.sh | ||
.github/workflows/scripts/stop-only.sh . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# Define the search directory (default to current directory) | ||
SEARCH_DIR=${1:-.} | ||
|
||
# Find all matching test files and search for ".only" | ||
echo "🔍 Searching for '.only' in test files" | ||
|
||
# Search for .only patterns and store results | ||
FOUND_FILES=$(grep -r "it.only\|describe.only\|test.only" "$SEARCH_DIR" \ | ||
--include="*.e2e.ts" \ | ||
--include="*.e2e-ee.ts" \ | ||
--include="*.spec.ts" \ | ||
--include="*.test.ts" \ | ||
--exclude-dir={node_modules,dist,build} \ | ||
-n | cut -d ":" -f 1,2) | ||
|
||
# Check if any files were found | ||
if [ -n "$FOUND_FILES" ]; then | ||
echo "" | ||
echo "🥵 Found '.only' in the following files:" | ||
echo "$FOUND_FILES" | ||
echo "" | ||
echo "🧹🧹🧹 Please remove '.only' before committing!" | ||
exit 1 | ||
else | ||
echo "✅ No '.only' found in test files." | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.