-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
15 changed files
with
139 additions
and
79 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# GitHub Actions Workflow is created for testing and preparing the plugin release in the following steps: | ||
# - validate Gradle Wrapper, | ||
# - run 'test' and 'verifyPlugin' tasks, | ||
# - run Qodana inspections, | ||
# - run 'buildPlugin' task and prepare artifact for the further tests, | ||
# - run 'runPluginVerifier' task, | ||
# - create a draft release. | ||
# - Validate Gradle Wrapper. | ||
# - Run 'test' and 'verifyPlugin' tasks. | ||
# - Run Qodana inspections. | ||
# - Run the 'buildPlugin' task and prepare artifact for further tests. | ||
# - Run the 'runPluginVerifier' task. | ||
# - Create a draft release. | ||
# | ||
# Workflow is triggered on push and pull_request events. | ||
# The workflow is triggered on push and pull_request events. | ||
# | ||
# GitHub Actions reference: https://help.github.com/en/actions | ||
|
||
|
@@ -49,13 +49,6 @@ jobs: | |
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }} | ||
steps: | ||
|
||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /opt/ghc | ||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
@@ -64,7 +57,7 @@ jobs: | |
- name: Gradle Wrapper Validation | ||
uses: gradle/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -73,7 +66,9 @@ jobs: | |
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
uses: gradle/[email protected] | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
# Set environment variables | ||
- name: Export Properties | ||
|
@@ -138,7 +133,7 @@ jobs: | |
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -147,7 +142,9 @@ jobs: | |
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
uses: gradle/[email protected] | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
# Run tests | ||
- name: Run Tests | ||
|
@@ -161,11 +158,11 @@ jobs: | |
name: tests-result | ||
path: ${{ github.workspace }}/build/reports/tests | ||
|
||
# Upload Kover report to CodeCov | ||
# Upload the Kover report to CodeCov | ||
- name: Upload Code Coverage Report | ||
uses: codecov/[email protected] | ||
with: | ||
files: ${{ github.workspace }}/build/reports/kover/xml/report.xml | ||
files: ${{ github.workspace }}/build/reports/kover/report.xml | ||
|
||
# Run Qodana inspections and provide report | ||
inspectCode: | ||
|
@@ -178,11 +175,18 @@ jobs: | |
pull-requests: write | ||
steps: | ||
|
||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: false | ||
large-packages: false | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -198,20 +202,22 @@ jobs: | |
# Run plugin structure verification along with IntelliJ Plugin Verifier | ||
verify: | ||
name: Verify plugin | ||
needs: [ build, test, inspectCode ] | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Remove files to save space | ||
- name: Remove unnecessary files | ||
run: | | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
|
||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: false | ||
large-packages: false | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -220,7 +226,7 @@ jobs: | |
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2.10.0 | ||
uses: gradle/gradle-build-action@v2.11.0 | ||
|
||
# Cache Plugin Verifier IDEs | ||
- name: Setup Plugin Verifier IDEs Cache | ||
|
@@ -246,7 +252,7 @@ jobs: | |
releaseDraft: | ||
name: Release draft | ||
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/support/') | ||
needs: [ build, verify ] | ||
needs: [ build, test, inspectCode, verify ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -256,7 +262,7 @@ jobs: | |
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
|
||
jobs: | ||
|
||
# Prepare and publish the plugin to the Marketplace repository | ||
# Prepare and publish the plugin to JetBrains Marketplace repository | ||
release: | ||
name: Publish Plugin | ||
runs-on: ubuntu-latest | ||
|
@@ -24,7 +24,7 @@ jobs: | |
with: | ||
ref: ${{ github.event.release.tag_name }} | ||
|
||
# Setup Java environment for the next steps | ||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -33,9 +33,11 @@ jobs: | |
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
uses: gradle/[email protected] | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
# Publish the plugin to the Marketplace | ||
# Publish the plugin to JetBrains Marketplace | ||
- name: Publish Plugin | ||
env: | ||
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | ||
|
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# GitHub Actions Workflow for launching UI tests on Linux, Windows, and Mac in the following steps: | ||
# - prepare and launch IDE with your plugin and robot-server plugin, which is needed to interact with UI | ||
# - wait for IDE to start | ||
# - run UI tests with separate Gradle task | ||
# - Prepare and launch IDE with your plugin and robot-server plugin, which is needed to interact with the UI. | ||
# - Wait for IDE to start. | ||
# - Run UI tests with a separate Gradle task. | ||
# | ||
# Please check https://github.com/JetBrains/intellij-ui-test-robot for information about UI tests with IntelliJ Platform | ||
# Please check https://github.com/JetBrains/intellij-ui-test-robot for information about UI tests with IntelliJ Platform. | ||
# | ||
# Workflow is triggered manually. | ||
|
||
|
@@ -35,7 +35,7 @@ jobs: | |
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -44,7 +44,9 @@ jobs: | |
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
uses: gradle/[email protected] | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
# Run IDEA prepared for UI testing | ||
- name: Run IDE | ||
|
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
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
Binary file not shown.
Oops, something went wrong.