GitHub Actions: Collect Qodana/Tests/Plugin Verifier results as artifacts

pull/204/head
Jakub Chrzanowski 3 years ago committed by Jakub Chrzanowski
parent 0edb9d732b
commit fd0e6d7130

@ -72,16 +72,30 @@ jobs:
uses: actions/cache@v2.1.6
with:
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }}
key: plugin-verifier-${{ steps.properties.outputs.ideVersions }}
# Run Qodana inspections
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v2.1-eap
# Collect Qodana Result
- uses: actions/upload-artifact@v2
with:
name: qodana-result
path: ${{ github.workspace }}/qodana
# Run tests
- name: Run Tests
run: ./gradlew test
# Collect Tests Result of failed tests
- name: Collect Tests Result
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: tests-result
path: ${{ github.workspace }}/build/reports/tests
# Run verifyPlugin Gradle task
- name: Verify Plugin
run: ./gradlew verifyPlugin
@ -90,6 +104,14 @@ jobs:
- name: Run Plugin Verifier
run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }}
# Collect Plugin Verifier Result
- name: Collect Plugin Verifier Result
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: pluginVerifier-result
path: ${{ github.workspace }}/build/reports/pluginVerifier
# Build plugin with buildPlugin Gradle task and provide the artifact for the next workflow jobs
# Requires test job to be passed
build:

@ -3,6 +3,8 @@
# IntelliJ Platform Plugin Template Changelog
## [Unreleased]
### Added
- GitHub Actions: Collect Qodana/Tests/Plugin Verifier results as artifacts
## [1.0.0]
### Added

Loading…
Cancel
Save