File tree Expand file tree Collapse file tree 1 file changed +85
-0
lines changed
Expand file tree Collapse file tree 1 file changed +85
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths-ignore :
8+ - ' **/.idea/**'
9+ - ' **/README.md'
10+ - ' **/.gitignore'
11+ pull_request :
12+ branches :
13+ - master
14+ paths-ignore :
15+ - ' **/.idea/**'
16+ - ' **/README.md'
17+ - ' **/.gitignore'
18+
19+ concurrency :
20+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
21+ cancel-in-progress : true
22+
23+ jobs :
24+ build :
25+ name : Build
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Free disk space
29+ uses : jlumbroso/free-disk-space@v1.3.1
30+ with :
31+ large-packages : false
32+ - name : Checkout code
33+ uses : actions/checkout@v6
34+ - name : Setup JDK 21
35+ uses : actions/setup-java@v5
36+ with :
37+ distribution : corretto
38+ java-version : 21
39+ - name : Setup Gradle
40+ uses : gradle/actions/setup-gradle@v5
41+ - name : Build plugin
42+ run : ./gradlew buildPlugin
43+ - name : Prepare plugin artifact
44+ id : artifact
45+ shell : bash
46+ run : |
47+ cd ${{ github.workspace }}/build/distributions
48+ FILENAME=`ls *.zip`
49+ unzip "$FILENAME" -d content
50+ echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
51+ - name : Upload plugin artifact
52+ uses : actions/upload-artifact@v6
53+ with :
54+ name : ${{ steps.artifact.outputs.filename }}
55+ path : ./build/distributions/content/**
56+
57+ verify :
58+ name : Verify
59+ needs :
60+ - build
61+ runs-on : ubuntu-latest
62+ steps :
63+ - name : Free disk space
64+ uses : jlumbroso/free-disk-space@v1.3.1
65+ with :
66+ large-packages : false
67+ - name : Checkout code
68+ uses : actions/checkout@v6
69+ - name : Setup JDK 21
70+ uses : actions/setup-java@v5
71+ with :
72+ distribution : corretto
73+ java-version : 21
74+ - name : Setup Gradle
75+ uses : gradle/actions/setup-gradle@v5
76+ with :
77+ cache-read-only : true
78+ - name : Verify plugin
79+ run : ./gradlew verifyPlugin
80+ - name : Collect Plugin Verifier results
81+ if : ${{ always() }}
82+ uses : actions/upload-artifact@v6
83+ with :
84+ name : plugin-verifier-result
85+ path : ${{ github.workspace }}/build/reports/pluginVerifier
You can’t perform that action at this time.
0 commit comments