Currently, SonarCloud only executes when tests pass, but even if tests fail, its valuable for sonarcloud to execute.
Solution:
Remove needs:[test] so it doesn't require the test job complete successfully before kicking off SonarCloud job. Add if: ${{ always() }} in the SonarCloud step so the it can be run at all time no matter the status of previous steps.
Problem:
Currently, SonarCloud only executes when tests pass, but even if tests fail, its valuable for sonarcloud to execute.
Solution:
Remove
needs:[test]
so it doesn't require the test job complete successfully before kicking off SonarCloud job. Addif: ${{ always() }}
in the SonarCloud step so the it can be run at all time no matter the status of previous steps.