-
-
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
18 changed files
with
160 additions
and
97 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 |
---|---|---|
|
@@ -25,11 +25,24 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
guard: | ||
name: Usage guard | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Uses the action-usage-guard action | ||
- name: Run Action Usage Guard | ||
uses: nekofar/action-usage-guard@develop | ||
with: | ||
# GitHub access token for authentication. | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
# Defines the threshold for the usage guard. | ||
threshold: 70 | ||
|
||
# Prepare environment and build the plugin | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
needs: [ guard ] | ||
outputs: | ||
version: ${{ steps.properties.outputs.version }} | ||
changelog: ${{ steps.changelog.outputs.changelog }} | ||
|
@@ -51,9 +64,16 @@ jobs: | |
- name: Gradle Wrapper Validation | ||
uses: gradle/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2.6.1 | ||
uses: gradle/gradle-build-action@v2.7.0 | ||
|
||
# Set environment variables | ||
- name: Export Properties | ||
|
@@ -67,7 +87,7 @@ jobs: | |
echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
echo "name=$NAME" >> $GITHUB_OUTPUT | ||
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT | ||
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier | ||
# Extract changelog information | ||
|
@@ -106,11 +126,79 @@ jobs: | |
with: | ||
name: ${{ steps.artifact.outputs.filename }} | ||
path: ./build/distributions/content/*/* | ||
|
||
|
||
# Run tests and upload a code coverage report | ||
test: | ||
name: Test | ||
needs: [ build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
||
# Run tests | ||
- name: Run Tests | ||
run: ./gradlew check | ||
|
||
# Collect Tests Result of failed tests | ||
- name: Collect Tests Result | ||
if: ${{ failure() }} | ||
uses: actions/[email protected] | ||
with: | ||
name: tests-result | ||
path: ${{ github.workspace }}/build/reports/tests | ||
|
||
# Upload Kover report to CodeCov | ||
- name: Upload Code Coverage Report | ||
uses: codecov/[email protected] | ||
with: | ||
files: ${{ github.workspace }}/build/reports/kover/xml/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: | ||
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
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, test, inspectCode ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Remove files to save space | ||
|
@@ -123,9 +211,16 @@ jobs: | |
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2.6.1 | ||
uses: gradle/gradle-build-action@v2.7.0 | ||
|
||
# Cache Plugin Verifier IDEs | ||
- name: Setup Plugin Verifier IDEs Cache | ||
|
@@ -146,34 +241,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/[email protected] | ||
|
||
# Run Qodana inspections | ||
- name: Qodana - Code Inspection | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
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.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/support/') | ||
needs: [ build, verify, inspectCode ] | ||
needs: [ build, verify ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -183,6 +256,13 @@ jobs: | |
- name: Fetch Sources | ||
uses: actions/[email protected] | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/[email protected] | ||
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: | ||
|
@@ -194,16 +274,13 @@ jobs: | |
# Create a new release draft which is not publicly visible and requires manual acceptance | ||
- name: Create Release Draft | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
gh release create v${{ needs.build.outputs.version }} \ | ||
--draft \ | ||
--title "v${{ needs.build.outputs.version }}" \ | ||
--notes "$(cat << 'EOM' | ||
${{ needs.build.outputs.changelog }} | ||
EOM | ||
)" | ||
uses: nekofar/[email protected] | ||
with: | ||
tag: v${{ needs.build.outputs.version }} # The name of the tag to be released | ||
title: v${{ needs.build.outputs.version }} # The title for the release | ||
notes: ${{ needs.build.outputs.changelog }} # The release notes generated in the previous step | ||
draft: true # The release will be created as a draft | ||
prerelease: ${{ contains(needs.build.outputs.version, '-rc') || contains(needs.build.outputs.version, '-beta') || contains(needs.build.outputs.version, '-alpha') }} # Conditions to mark the release as a pre-release | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
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 |
---|---|---|
|
@@ -26,11 +26,14 @@ jobs: | |
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v3.11.0 | ||
uses: actions/setup-java@v3.12.0 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
cache: gradle | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
||
# Publish the plugin to the Marketplace | ||
- name: Publish Plugin | ||
|
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 |
---|---|---|
|
@@ -33,15 +33,18 @@ jobs: | |
|
||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/[email protected].2 | ||
uses: actions/[email protected].3 | ||
|
||
# Setup Java environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v3.11.9 | ||
uses: actions/setup-java@v3.12.0 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
cache: gradle | ||
|
||
# Setup Gradle | ||
- name: Setup Gradle | ||
uses: gradle/[email protected] | ||
|
||
# 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.
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,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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 +1 @@ | ||
rootProject.name = "intellij-redwood" | ||
rootProject.name = "intellij-redwood" |
Oops, something went wrong.