generated from JetBrains/intellij-platform-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
1 changed file
with
12 additions
and
35 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 |
---|---|---|
|
@@ -23,41 +23,6 @@ on: | |
- master | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out current repository | ||
- name: Fetch Sources | ||
uses: actions/checkout@v4 | ||
|
||
# Validate wrapper | ||
- name: Gradle Wrapper Validation | ||
uses: gradle/[email protected] | ||
|
||
# Setup Java 17 environment for the next steps | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
cache: gradle | ||
# Run tests | ||
- name: Run Tests | ||
env: | ||
idea_test_github_host: github.com | ||
idea_test_github_org: cunla | ||
idea_test_github_token1: ${{ secrets.GITHUB_TOKEN }} | ||
run: ./gradlew test | ||
|
||
# Collect Tests Result of failed tests | ||
- name: Collect Tests Result | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests-result | ||
path: ${{ github.workspace }}/build/reports/tests | ||
|
||
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum | ||
# Run verifyPlugin, IntelliJ Plugin Verifier, and test Gradle tasks | ||
# Build plugin and provide the artifact for the next workflow jobs | ||
|
@@ -92,6 +57,18 @@ jobs: | |
java-version: 17 | ||
cache: gradle | ||
|
||
# Run tests | ||
- name: Run Tests | ||
run: ./gradlew test | ||
|
||
# Collect Tests Result of failed tests | ||
- name: Collect Tests Result | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests-result | ||
path: ${{ github.workspace }}/build/reports/tests | ||
|
||
- name: plugin verifier | ||
run: | | ||
./gradlew runPluginVerifier | ||
|