stabilize tests
This commit is contained in:
@@ -74,17 +74,32 @@ jobs:
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Run Bun analyzer tests
|
||||
run: |
|
||||
if [ -d "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Bun.Tests" ]; then
|
||||
dotnet test src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Bun.Tests/ --verbosity normal
|
||||
fi
|
||||
- name: Setup Deno
|
||||
uses: denoland/setup-deno@v2
|
||||
with:
|
||||
deno-version: '2.1.4'
|
||||
|
||||
- name: Run Node analyzer tests
|
||||
- name: Run all language analyzer tests
|
||||
run: |
|
||||
if [ -d "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Node.Tests" ]; then
|
||||
dotnet test src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Node.Tests/ --verbosity normal
|
||||
EXIT_CODE=0
|
||||
for test_dir in src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.*.Tests; do
|
||||
if [ -d "$test_dir" ]; then
|
||||
echo "=== Running tests in $(basename "$test_dir") ==="
|
||||
if ! dotnet test "$test_dir/" --verbosity normal; then
|
||||
echo "FAILED: $(basename "$test_dir")"
|
||||
EXIT_CODE=1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
# Also run the shared Lang.Tests project
|
||||
if [ -d "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Tests" ]; then
|
||||
echo "=== Running tests in StellaOps.Scanner.Analyzers.Lang.Tests ==="
|
||||
if ! dotnet test "src/Scanner/__Tests/StellaOps.Scanner.Analyzers.Lang.Tests/" --verbosity normal; then
|
||||
echo "FAILED: StellaOps.Scanner.Analyzers.Lang.Tests"
|
||||
EXIT_CODE=1
|
||||
fi
|
||||
fi
|
||||
exit $EXIT_CODE
|
||||
|
||||
fixture-validation:
|
||||
name: Validate Test Fixtures
|
||||
|
||||
Reference in New Issue
Block a user