Skip to content

Commit 76d1cf1

Browse files
add simple test
1 parent 72e1c2f commit 76d1cf1

2 files changed

Lines changed: 28 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,31 @@ env:
1111
ANSIBLE_FORCE_COLOR: 1
1212
ANSIBLE_STDOUT_CALLBACK: yaml
1313
jobs:
14-
sonarcloud:
15-
name: SonarCloud
14+
sonarqube:
15+
name: SonarQube
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
21-
- name: SonarCloud Scan
22-
uses: SonarSource/sonarcloud-github-action@master
21+
- name: SonarQube Scan
22+
uses: SonarSource/sonarqube-scan-action@v6
2323
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
2524
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
25+
ubuntu-22:
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4.1.7
30+
with:
31+
fetch-depth: 0
32+
- name: Install ansible
33+
run: |
34+
sudo apt-add-repository --yes --update ppa:ansible/ansible
35+
sudo apt-get update
36+
sudo apt-get install ansible -y
37+
ansible --version
38+
- name: Run playbook
39+
run: |
40+
cd ..
41+
ansible-playbook ansible-role-java/playbook.yml

playbook.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: Install Java
2+
hosts: localhost
3+
roles:
4+
- role: ansible-role-java
5+
transport: repositories
6+
java_major_version: 17

0 commit comments

Comments
 (0)