mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
GitHub Actions: Collect Qodana/Tests/Plugin Verifier results as artifacts
This commit is contained in:
parent
0edb9d732b
commit
fd0e6d7130
24
.github/workflows/build.yml
vendored
24
.github/workflows/build.yml
vendored
@ -72,16 +72,30 @@ jobs:
|
|||||||
uses: actions/cache@v2.1.6
|
uses: actions/cache@v2.1.6
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides
|
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
|
# Run Qodana inspections
|
||||||
- name: Qodana - Code Inspection
|
- name: Qodana - Code Inspection
|
||||||
uses: JetBrains/qodana-action@v2.1-eap
|
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
|
# Run tests
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: ./gradlew test
|
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
|
# Run verifyPlugin Gradle task
|
||||||
- name: Verify Plugin
|
- name: Verify Plugin
|
||||||
run: ./gradlew verifyPlugin
|
run: ./gradlew verifyPlugin
|
||||||
@ -90,6 +104,14 @@ jobs:
|
|||||||
- name: Run Plugin Verifier
|
- name: Run Plugin Verifier
|
||||||
run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }}
|
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
|
# Build plugin with buildPlugin Gradle task and provide the artifact for the next workflow jobs
|
||||||
# Requires test job to be passed
|
# Requires test job to be passed
|
||||||
build:
|
build:
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
# IntelliJ Platform Plugin Template Changelog
|
# IntelliJ Platform Plugin Template Changelog
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Added
|
||||||
|
- GitHub Actions: Collect Qodana/Tests/Plugin Verifier results as artifacts
|
||||||
|
|
||||||
## [1.0.0]
|
## [1.0.0]
|
||||||
### Added
|
### Added
|
||||||
|
Loading…
Reference in New Issue
Block a user