Skip to content

Commit 173f5a5

Browse files
authored
Merge pull request #968 from jeffgbutler/ci-for-eclipse
[actions] CI Step for eclipse
2 parents 0c6d408 + 22ab68a commit 173f5a5

File tree

5 files changed

+73
-4
lines changed

5 files changed

+73
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2010-2020 the original author or authors.
2+
# Copyright 2010-2023 the original author or authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

.github/workflows/coveralls.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2016-2020 the original author or authors.
2+
# Copyright 2016-2023 the original author or authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

.github/workflows/eclipse-ci.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#
2+
# Copyright 2010-2023 the original author or authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
name: Eclipse Plugin CI
18+
19+
defaults:
20+
run:
21+
working-directory: eclipse
22+
23+
on: [push, pull_request]
24+
25+
jobs:
26+
test:
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
matrix:
30+
os: [ubuntu-latest]
31+
java: [17, 19, 20-ea]
32+
distribution: ['zulu']
33+
fail-fast: false
34+
max-parallel: 4
35+
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
36+
37+
steps:
38+
- uses: actions/checkout@v3
39+
- name: Install Toolchain JDK
40+
uses: battila7/jdk-via-jabba@v1
41+
with:
42+
43+
javaHomeEnvironmentVariable: TOOLCHAIN_JDK
44+
- name: Set up Toolchain
45+
shell: bash
46+
run: |
47+
mkdir -p $HOME/.m2 \
48+
&& cat << EOF > $HOME/.m2/toolchains.xml
49+
<?xml version="1.0" encoding="UTF8"?>
50+
<toolchains>
51+
<toolchain>
52+
<type>jdk</type>
53+
<provides>
54+
<version>11</version>
55+
<vendor>zulu</vendor>
56+
</provides>
57+
<configuration>
58+
<jdkHome>${{ env.TOOLCHAIN_JDK }}</jdkHome>
59+
</configuration>
60+
</toolchain>
61+
</toolchains>
62+
EOF
63+
- name: Set up JDK
64+
uses: actions/setup-java@v3
65+
with:
66+
java-version: ${{ matrix.java }}
67+
distribution: ${{ matrix.distribution }}
68+
- name: Test with Maven
69+
run: ./mvnw integration-test -B -D"license.skip=true"

.github/workflows/sonar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2010-2020 the original author or authors.
2+
# Copyright 2010-2023 the original author or authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

.github/workflows/sonatype.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2010-2020 the original author or authors.
2+
# Copyright 2010-2023 the original author or authors.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)