-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (56 loc) · 1.53 KB
/
IJ.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Validate against IJ versions
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- IJ: 2021.1
jvm: 17
- IJ: 2021.2
jvm: 17
- IJ: 2021.3
jvm: 17
- IJ: 2022.1
jvm: 17
- IJ: 2022.2
jvm: 17
- IJ: 2022.3
jvm: 17
- IJ: 2023.1
jvm: 17
- IJ: 2023.2
jvm: 17
- IJ: 2023.3
jvm: 17
- IJ: 2024.1
jvm: 17
- IJ: 2024.2
jvm: 17
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jvm }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jvm }}
distribution: 'temurin'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build -PideaVersion=${{ matrix.IJ }}
- name: Validate with Gradle
run: ./gradlew verifyPlugin -PideaVersion=${{ matrix.IJ }}
- name: Upload report
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ matrix.IJ }}-verifier-report
path: build/reports/pluginVerifier