forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Qodana - Code Inspection | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
code_inspection: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Runs Qodana | ||
- name: Qodana - Code Inspection | ||
timeout-minutes: 600 | ||
run: docker run -v ${GITHUB_WORKSPACE}:/data/project -v ${GITHUB_WORKSPACE}/qodana:/data/results jetbrains/qodana:2020.3-eap --save-report | ||
|
||
# Archives Qodana results to workflow artifacts | ||
- name: Archive results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: qodana-results | ||
if-no-files-found: error | ||
path: qodana/report/results | ||
|
||
# Prints Qodana results | ||
- name: Print results | ||
run: | | ||
echo "🎉 Qodana has finished successfully!" | ||
echo "Download an artifact qodana-results.zip. Code Inspection results are part of file result-allProblems.json." | ||
echo "________________________________________________________________" | ||
cat ${GITHUB_WORKSPACE}/qodana/report/results/result-allProblems.json | ||
# Archives Qodana error logs if Qodana fails | ||
- name: Archive error logs | ||
uses: actions/upload-artifact@v2 | ||
if: failure() | ||
with: | ||
name: qodana-error-logs | ||
path: qodana | ||
|
||
# Prints error message | ||
- name: Print error message | ||
if: failure() | ||
run: | | ||
echo "❌ Qodana has failed" | ||
echo "Please contact our support team by email at [email protected]. Attach qodana-error-logs.zip to your message." |