Skip to content

Commit 6f11736

Browse files
openjdk fallback test (#151)
* openjdk fallback test * openjdk repo test 21 * openjdk repo tests
1 parent 4992c72 commit 6f11736

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: SonarSource/sonarqube-scan-action@v6
2323
env:
2424
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
25-
ubuntu-22:
25+
openjdk-fallback:
2626
runs-on: ubuntu-22.04
2727
steps:
2828
- name: Checkout
@@ -38,4 +38,28 @@ jobs:
3838
- name: Run playbook
3939
run: |
4040
cd ..
41-
ansible-playbook ansible-role-java/playbook.yml
41+
ansible-playbook ansible-role-java/playbook.yml -e "java_major_version=25"
42+
openjdk-repo:
43+
strategy:
44+
matrix:
45+
java_version:
46+
- '21'
47+
- '17'
48+
- '11'
49+
- '8'
50+
runs-on: ubuntu-22.04
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4.1.7
54+
with:
55+
fetch-depth: 0
56+
- name: Install ansible
57+
run: |
58+
sudo apt-add-repository --yes --update ppa:ansible/ansible
59+
sudo apt-get update
60+
sudo apt-get install ansible -y
61+
ansible --version
62+
- name: Run playbook
63+
run: |
64+
cd ..
65+
ansible-playbook ansible-role-java/playbook.yml -e "java_major_version=${{ matrix.java_version }} transport=repositories"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Example Playbook
268268
java_major_version: 25
269269
```
270270
271-
### Installing OpenJDK 17 from repositories:
271+
### Installing OpenJDK 21, 17, 11, 8 from repositories:
272272
273273
```yaml
274274
- name: Install openjdk java
@@ -277,7 +277,7 @@ Example Playbook
277277
roles:
278278
- role: lean_delivery.java
279279
transport: repositories
280-
java_major_version: 17
280+
java_major_version: 21
281281
```
282282
283283
### Installing OpenJDK 11 from web:

playbook.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
hosts: localhost
33
roles:
44
- role: ansible-role-java
5-
java_major_version: 25

0 commit comments

Comments
 (0)