File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 ANSIBLE_FORCE_COLOR : 1
1212 ANSIBLE_STDOUT_CALLBACK : yaml
1313jobs :
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
Original file line number Diff line number Diff line change 1+ - name : Install Java
2+ hosts : localhost
3+ roles :
4+ - role : ansible-role-java
5+ transport : repositories
6+ java_major_version : 17
You can’t perform that action at this time.
0 commit comments