Skip to content

Commit c07a58d

Browse files
authored
update CI matrix (#65)
update to 3.4.3, add 4.0.0.M2 in addition to snapshot, and simplify the java 11/17 logic (always use 11 for 3.4.x, 17 for 4.x) Signed-off-by: Cody Cutrer <[email protected]>
1 parent da8054b commit c07a58d

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

.github/workflows/ci.yml

+9-20
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ jobs:
7070
if: "!contains(github.event.head_commit.message, 'ci skip')"
7171
outputs:
7272
openhab_matrix: |
73-
["3.4.2", "4.0.0-SNAPSHOT"]
74-
java_matrix: |
75-
["11", "17"]
73+
["3.4.3", "4.0.0.M2", "4.0.0-SNAPSHOT"]
7674
snapshot_date: |
7775
${{ steps.snapshot-date.outputs.SNAPSHOT_DATE }}
7876
steps:
@@ -104,7 +102,7 @@ jobs:
104102
- uses: actions/setup-java@v3
105103
with:
106104
distribution: zulu
107-
java-version: ${{ endsWith(matrix.openhab_version, 'SNAPSHOT') && '17' || '11' }}
105+
java-version: ${{ startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
108106
java-package: jre
109107
- name: Setup openHAB
110108
if: steps.cache.outputs.cache-hit != 'true'
@@ -128,15 +126,12 @@ jobs:
128126
strategy:
129127
matrix:
130128
openhab_version: ${{ fromJson(needs.openhab-matrix.outputs.openhab_matrix) }}
131-
java_version: ${{ fromJson(needs.openhab-matrix.outputs.java_matrix) }}
132129
jruby_version: ["jruby-9.3.10.0", "jruby-9.4.2.0"]
133130
exclude:
134-
- openhab_version: 3.4.0
135-
java_version: 17
131+
- openhab_version: 4.0.0.M2
132+
jruby_version: jruby-9.3.10.0
136133
- openhab_version: 4.0.0-SNAPSHOT
137-
java_version: 11
138-
- openhab_version: 4.0.0-SNAPSHOT
139-
jruby_version: "jruby-9.3.10.0"
134+
jruby_version: jruby-9.3.10.0
140135
steps:
141136
- uses: actions/checkout@v3
142137
- uses: ruby/setup-ruby@v1
@@ -146,7 +141,7 @@ jobs:
146141
- uses: actions/setup-java@v3
147142
with:
148143
distribution: zulu
149-
java-version: ${{ matrix.java_version }}
144+
java-version: ${{ startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
150145
java-package: jre
151146
- name: Restore openHAB setup
152147
uses: actions/cache@v3
@@ -167,7 +162,7 @@ jobs:
167162
uses: actions/upload-artifact@v3
168163
if: success() || failure()
169164
with:
170-
name: RSpec-results-openHAB-${{ matrix.openhab_version }}-jruby-${{ matrix.jruby_version }}-java-${{ matrix.java_version }}
165+
name: RSpec-results-openHAB-${{ matrix.openhab_version }}-jruby-${{ matrix.jruby_version }}
171166
path: rspec.html
172167

173168
cucumber:
@@ -177,12 +172,6 @@ jobs:
177172
strategy:
178173
matrix:
179174
openhab_version: ${{ fromJson(needs.openhab-matrix.outputs.openhab_matrix) }}
180-
java_version: ${{ fromJson(needs.openhab-matrix.outputs.java_matrix) }}
181-
exclude:
182-
- openhab_version: 3.4.1
183-
java_version: 17
184-
- openhab_version: 4.0.0-SNAPSHOT
185-
java_version: 11
186175
steps:
187176
- uses: actions/checkout@v3
188177
- uses: ruby/setup-ruby@v1
@@ -192,7 +181,7 @@ jobs:
192181
- uses: actions/setup-java@v3
193182
with:
194183
distribution: zulu
195-
java-version: ${{ matrix.java_version }}
184+
java-version: ${{ startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
196185
java-package: jre
197186
- name: Restore openHAB setup
198187
uses: actions/cache@v3
@@ -206,7 +195,7 @@ jobs:
206195
uses: actions/upload-artifact@v3
207196
if: success() || failure()
208197
with:
209-
name: Cucumber-logs-openHAB-${{ matrix.openhab_version }}-java-${{ matrix.java_version }}
198+
name: Cucumber-logs-openHAB-${{ matrix.openhab_version }}
210199
path: |
211200
tmp/openhab/userdata/logs
212201
tmp/karaf.log

0 commit comments

Comments
 (0)