Skip to content

Commit 054fc45

Browse files
committed
ci update
1 parent 8a0f659 commit 054fc45

File tree

1 file changed

+35
-7
lines changed

1 file changed

+35
-7
lines changed

.github/workflows/build.yml

+35-7
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
2222
steps:
2323

24-
# Check out current repository
24+
# Check out the current repository
2525
- name: Fetch Sources
2626
uses: actions/checkout@v4
2727

2828
# Validate wrapper
2929
- name: Gradle Wrapper Validation
30-
uses: gradle/wrapper-validation-action@v1.1.0
30+
uses: gradle/actions/wrapper-validation@v3
3131

3232
# Set up Java environment for the next steps
3333
- name: Setup Java
@@ -58,20 +58,48 @@ jobs:
5858
echo "$CHANGELOG" >> $GITHUB_OUTPUT
5959
echo "EOF" >> $GITHUB_OUTPUT
6060
61-
./gradlew listProductsReleases # prepare list of IDEs for Plugin Verifier
62-
6361
# Build plugin
6462
- name: Build plugin
6563
run: ./gradlew buildPlugin
6664

65+
# Run tests
66+
test:
67+
name: Test (${{ matrix.os }})
68+
needs: [ build ]
69+
runs-on: ${{ matrix.os }}
70+
strategy:
71+
fail-fast: false
72+
matrix:
73+
os:
74+
- ubuntu-latest
75+
- macos-latest
76+
steps:
77+
78+
# Check out the current repository
79+
- name: Fetch Sources
80+
uses: actions/checkout@v4
81+
82+
# Set up Java environment for the next steps
83+
- name: Setup Java
84+
uses: actions/setup-java@v4
85+
with:
86+
distribution: zulu
87+
java-version: 17
88+
89+
# Setup Gradle
90+
- name: Setup Gradle
91+
uses: gradle/actions/setup-gradle@v3
92+
with:
93+
gradle-home-cache-cleanup: true
94+
6795
# Run plugin structure verification along with IntelliJ Plugin Verifier
6896
verify:
6997
name: Verify plugin
7098
needs: [ build ]
7199
runs-on: ubuntu-latest
72100
steps:
73101

74-
# Check out current repository
102+
# Check out the current repository
75103
- name: Fetch Sources
76104
uses: actions/checkout@v4
77105

@@ -90,12 +118,12 @@ jobs:
90118

91119
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
92120
- name: Run Plugin Verification tasks
93-
run: ./gradlew runPluginVerifier -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
121+
run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
94122

95123
# Collect Plugin Verifier Result
96124
- name: Collect Plugin Verifier Result
97125
if: ${{ always() }}
98-
uses: actions/upload-artifact@v3
126+
uses: actions/upload-artifact@v4
99127
with:
100128
name: pluginVerifier-result
101129
path: ${{ github.workspace }}/build/reports/pluginVerifier

0 commit comments

Comments
 (0)