fix: pular testas se estiver nas variaveis
This commit is contained in:
parent
3b1a356e35
commit
4500b927ad
@ -46,7 +46,16 @@ jobs:
|
||||
if: ${{ vars.SKIP_TESTS_PR != 'true' }}
|
||||
run: |
|
||||
echo "🧪 Executando testes no PR"
|
||||
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: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user