diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bfe9e828..9af4c664 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,15 +11,31 @@ env: ANSIBLE_FORCE_COLOR: 1 ANSIBLE_STDOUT_CALLBACK: yaml jobs: - sonarcloud: - name: SonarCloud + sonarqube: + name: SonarQube runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v6 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + ubuntu-22: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4.1.7 + with: + fetch-depth: 0 + - name: Install ansible + run: | + sudo apt-add-repository --yes --update ppa:ansible/ansible + sudo apt-get update + sudo apt-get install ansible -y + ansible --version + - name: Run playbook + run: | + cd .. + ansible-playbook ansible-role-java/playbook.yml diff --git a/README.md b/README.md index 90fa1309..4bd5fa75 100644 --- a/README.md +++ b/README.md @@ -75,20 +75,7 @@ Requirements - Ubuntu bionic: repositories, tarball - Debian stretch: tarball - Windows: tarball - - 12 - - EL 6: tarball - - EL 7: tarball - - EL 8: tarball - - Ubuntu bionic: tarball - - Debian stretch: tarball - - Windows: tarball - - 13 - - EL 6: tarball, fallback - - EL 7: tarball, fallback - - EL 8: tarball, fallback - - Ubuntu bionic: tarball, fallback - - Debian stretch: tarball, fallback - - Windows: tarball, fallback + - 17 - **Supported oracle java version**: - 7 - 8 @@ -279,7 +266,7 @@ Example Playbook java_major_version: 17 ``` -### Installing OpenJDK 8 from repositories: +### Installing OpenJDK 17 from repositories: ```yaml - name: Install openjdk java @@ -288,7 +275,7 @@ Example Playbook roles: - role: lean_delivery.java transport: repositories - java_major_version: 8 + java_major_version: 17 ``` ### Installing OpenJDK 11 from web: diff --git a/playbook.yml b/playbook.yml new file mode 100644 index 00000000..3626fd60 --- /dev/null +++ b/playbook.yml @@ -0,0 +1,6 @@ +- name: Install Java + hosts: localhost + roles: + - role: ansible-role-java + transport: repositories + java_major_version: 17