generated from JetBrains/intellij-platform-plugin-template
-
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.
Merge pull request #157 from bobi/dev
Dev
- Loading branch information
Showing
10 changed files
with
144 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# GitHub Actions Workflow created for testing and preparing the plugin release in 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. | ||
# 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 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 | ||
# | ||
## JBIJPPTPL | ||
|
||
name: Build | ||
on: | ||
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests) | ||
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests) | ||
push: | ||
branches: [ main ] | ||
# Trigger the workflow on any pull request | ||
|
@@ -32,24 +32,26 @@ 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] | ||
|
||
# Validate wrapper | ||
- name: Gradle Wrapper Validation | ||
uses: gradle/[email protected] | ||
uses: gradle/[email protected] | ||
|
||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
# Set environment variables | ||
- name: Export Properties | ||
|
@@ -94,17 +96,26 @@ jobs: | |
# Run tests and upload a code coverage report | ||
test: | ||
name: Test | ||
needs: build | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v3 | ||
|
||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
# Run tests | ||
- name: Run Tests | ||
|
@@ -118,26 +129,77 @@ 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/codecov-action@v3 | ||
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: | ||
name: Inspect code | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
checks: write | ||
pull-requests: write | ||
steps: | ||
|
||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
large-packages: false | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v3 | ||
|
||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Run Qodana inspections | ||
- name: Qodana - Code Inspection | ||
uses: JetBrains/[email protected] | ||
with: | ||
cache-default-branch-only: true | ||
|
||
# Run plugin structure verification along with IntelliJ Plugin Verifier | ||
verify: | ||
name: Verify plugin | ||
needs: build | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
large-packages: false | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v3 | ||
|
||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
gradle-home-cache-cleanup: true | ||
|
||
# Cache Plugin Verifier IDEs | ||
- name: Setup Plugin Verifier IDEs Cache | ||
|
@@ -158,33 +220,12 @@ jobs: | |
name: pluginVerifier-result | ||
path: ${{ github.workspace }}/build/reports/pluginVerifier | ||
|
||
# Run Qodana inspections and provide report | ||
inspectCode: | ||
name: Inspect code | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
checks: write | ||
pull-requests: write | ||
steps: | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v3 | ||
|
||
# Run Qodana inspections | ||
- name: Qodana - Code Inspection | ||
uses: JetBrains/[email protected] | ||
with: | ||
cache-default-branch-only: true | ||
|
||
# Prepare a draft release for GitHub Releases page for the manual verification | ||
# If accepted and published, release workflow would be triggered | ||
releaseDraft: | ||
name: Release draft | ||
if: github.event_name != 'pull_request' | ||
needs: [ build, test, verify, inspectCode ] | ||
needs: [ build, test, inspectCode, verify ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -194,6 +235,13 @@ jobs: | |
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Set up Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Remove old release drafts by using the curl request for the available releases with a draft flag | ||
- name: Remove Old Release Drafts | ||
env: | ||
|
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,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,13 +35,18 @@ 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/setup-java@v3 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
cache: gradle | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
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
Binary file not shown.
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
Oops, something went wrong.