fix: pular testas se estiver nas variaveis
Some checks failed
PR Validation for Release / Validate Pull Request (pull_request) Failing after 45s
PR Validation for Release / Ready for Merge (pull_request) Has been skipped

This commit is contained in:
Ricardo Carneiro 2025-07-25 19:24:14 -03:00
parent 3b1a356e35
commit 4500b927ad

View File

@ -46,7 +46,16 @@ jobs:
if: ${{ vars.SKIP_TESTS_PR != 'true' }}
run: |
echo "🧪 Executando testes no PR"
dotnet test --no-build --configuration Release --verbosity normal
SKIP_TESTS="${{ github.event.inputs.skip_tests || vars.SKIP_TESTS }}"
if [ "$SKIP_TESTS" == "true" ]; then
echo "⚠️ Testes PULADOS"
echo "TESTS_SKIPPED=true" >> $GITHUB_ENV
else
echo "✅ Executando testes"
dotnet test --no-build --configuration Release --verbosity normal
echo "TESTS_SKIPPED=false" >> $GITHUB_ENV
fi
- name: Build Docker image (test only)
run: |