-
Notifications
You must be signed in to change notification settings - Fork 4
74 lines (74 loc) · 1.82 KB
/
test-main.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: test-main
on:
push:
branches:
- main
paths:
- "gradle/**"
- "**.kts"
- gradle.properties
- gradlew
- gradlew.bat
- "**.kt"
- "**.java"
- .github/workflows/test-main.yml
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
paths:
- "gradle/**"
- "**.kts"
- gradle.properties
- gradlew
- gradlew.bat
- "**.kt"
- "**.java"
- .github/workflows/test-main.yml
workflow_dispatch:
jobs:
test-main:
strategy:
fail-fast: false
matrix:
# LTS versions, latest version (if exists)
java-version: [ '8', '11', '17', '21', '23' ]
# Minimum version, latest release version, latest pre-release version (if exists)
kotlin:
- name: '1.9.25'
version: '1.9.25'
k2: false
- name: '1.9.25 K2'
version: '1.9.25'
k2: true
- name: '2.0.21'
version: '2.0.21'
k2: false
- name: '2.0.21 K2'
version: '2.0.21'
k2: true
- name: '2.1.0-RC2'
k2: false
- name: '2.1.0-RC2 K2'
k2: true
env:
KOTLIN_VERSION: ${{ matrix.kotlin.version }}
USE_K2: ${{ matrix.kotlin.k2 }}
name: "Kotlin ${{ matrix.kotlin.name }} - Java ${{ matrix.java-version }}"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Set up java ${{ matrix.java-version }}'
uses: actions/setup-java@v4
with:
java-version: '${{ matrix.java-version }}'
distribution: 'corretto'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Test
run: ./gradlew test