forked from ballerina-platform/plugin-intellij
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.44 KB
/
verification-build.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
name: Plugin Verification Build
on:
push:
branches:
- master
- 2.[0-9]+.x
workflow_dispatch:
jobs:
read-versions:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Read IntelliJ IDEA versions
id: set-env
run: |
sinceBuild=$(grep "^sinceBuild" gradle.properties | cut -d'=' -f2)
untilBuild=$(grep "^untilBuild" gradle.properties | cut -d'=' -f2)
echo "min-idea-version=${sinceBuild}" >> $GITHUB_ENV
echo "max-idea-version=${untilBuild}" >> $GITHUB_ENV
echo "min-idea-version=${sinceBuild}"
echo "max-idea-version=${untilBuild}"
outputs:
min_idea_version: ${{ steps.set-env.outputs.min-idea-version }}
max_idea_version: ${{ steps.set-env.outputs.max-idea-version }}
verify-plugin:
needs: read-versions
runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref }}-ubuntu-verify
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
idea_version: [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
- name: Verify against IDEA ${{ matrix.idea_version }}
run: ./gradlew runIde -PideaVersion=${{ matrix.idea_version }}