|
62 | 62 | path: ~/.gradle/wrapper |
63 | 63 | key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} |
64 | 64 |
|
65 | | - # Run verifyPlugin Gradle task |
66 | | - - name: Verify Plugin |
67 | | - run: ./gradlew verifyPlugin |
68 | | - |
69 | 65 | # Build plugin with buildPlugin Gradle task and provide the artifact for the next workflow jobs |
70 | 66 | # Requires test job to be passed |
71 | 67 | build: |
@@ -133,66 +129,12 @@ jobs: |
133 | 129 | name: plugin-artifact |
134 | 130 | path: ./build/distributions/${{ steps.properties.outputs.artifact }} |
135 | 131 |
|
136 | | - # Verify built plugin using IntelliJ Plugin Verifier tool |
137 | | - # Requires build job to be passed |
138 | | - verify: |
139 | | - name: Verify |
140 | | - needs: build |
141 | | - runs-on: ubuntu-latest |
142 | | - steps: |
143 | | - |
144 | | - # Setup Java 1.8 environment for the next steps |
145 | | - - name: Setup Java |
146 | | - uses: actions/setup-java@v1 |
147 | | - with: |
148 | | - java-version: 1.8 |
149 | | - |
150 | | - # Check out current repository |
151 | | - - name: Fetch Sources |
152 | | - uses: actions/checkout@v2 |
153 | | - |
154 | | - # Cache Gradle Dependencies |
155 | | - - name: Setup Gradle Dependencies Cache |
156 | | - uses: actions/cache@v2 |
157 | | - with: |
158 | | - path: ~/.gradle/caches |
159 | | - key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle', '**/*.gradle.kts', 'gradle.properties') }} |
160 | | - |
161 | | - # Cache Gradle Wrapper |
162 | | - - name: Setup Gradle Wrapper Cache |
163 | | - uses: actions/cache@v2 |
164 | | - with: |
165 | | - path: ~/.gradle/wrapper |
166 | | - key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} |
167 | | - |
168 | | - # Set environment variables |
169 | | - - name: Export Properties |
170 | | - id: properties |
171 | | - shell: bash |
172 | | - run: | |
173 | | - PROPERTIES="$(./gradlew properties --console=plain -q)" |
174 | | - IDE_VERSIONS="$(echo "$PROPERTIES" | grep "^pluginVerifierIdeVersions:" | base64)" |
175 | | -
|
176 | | - echo "::set-output name=ideVersions::$IDE_VERSIONS" |
177 | | - echo "::set-output name=pluginVerifierHomeDir::~/.pluginVerifier" |
178 | | -
|
179 | | - # Cache Plugin Verifier IDEs |
180 | | - - name: Setup Plugin Verifier IDEs Cache |
181 | | - uses: actions/cache@v2 |
182 | | - with: |
183 | | - path: ${{ steps.properties.outputs.pluginVerifierHomeDir }}/ides |
184 | | - key: ${{ runner.os }}-plugin-verifier-${{ steps.properties.outputs.ideVersions }} |
185 | | - |
186 | | - # Run IntelliJ Plugin Verifier action using GitHub Action |
187 | | - - name: Verify Plugin |
188 | | - run: ./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }} |
189 | | - |
190 | 132 | # Prepare a draft release for GitHub Releases page for the manual verification |
191 | 133 | # If accepted and published, release workflow would be triggered |
192 | 134 | releaseDraft: |
193 | 135 | name: Release Draft |
194 | 136 | if: github.event_name != 'pull_request' |
195 | | - needs: [build, verify] |
| 137 | + needs: [build] |
196 | 138 | runs-on: ubuntu-latest |
197 | 139 | steps: |
198 | 140 |
|
|
0 commit comments