Skip to content

Commit 2e88250

Browse files
authored
Run tests on multiple java versions (#215)
1 parent a568912 commit 2e88250

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,26 @@ jobs:
5151
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
5252
chmod a+x builder
5353
./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream
54+
55+
java-compat:
56+
runs-on: ubuntu-latest
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
version:
61+
- 8
62+
- 11
63+
- 17
64+
steps:
65+
- name: Checkout Sources
66+
uses: actions/checkout@v2
67+
- name: Setup Java
68+
uses: actions/setup-java@v2
69+
with:
70+
distribution: temurin
71+
java-version: ${{ matrix.version }}
72+
cache: maven
73+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
74+
run: |
75+
java -version
76+
mvn -B test

0 commit comments

Comments
 (0)