Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-strzelecki-vml committed Oct 21, 2024
1 parent 3ebb3d3 commit aa4d517
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/actions/test-plugin-installation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ inputs:
sonarqube-base-image:
description: 'Which base Docker image to use to set up SonarQube'
required: true
default: sonarqube-8.9-community
default: sonarqube-9.9-community
aem-rules-binary:
description: "Name of the JAR file to copy from Maven's 'target' directory into the plugins directory"
required: true
default: 'sonar-aemrules-plugin-1.4-SNAPSHOT.jar'
default: 'sonar-aemrules-plugin-1.8-SNAPSHOT.jar'
docker-hub-login:
description: 'Docker Hub username for which an access token has been generated'
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/test-plugin-installation/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ print_usage() {
usage: $0 [IMAGE...]
examples:
$0 7.6-community
$0 9.9-community
EOF
}

Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,18 @@ jobs:

strategy:
matrix:
java-version: [ 11 ]
java-version: [ 17 ]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'adopt'
cache: maven
- name: Package the Maven project and analyse the AEM Rules code with SonarCloud
# The Sonar plugin automatically picks up the token from an env variable.
# See https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-for-maven/#configuration
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication
- name: Package the Maven project and analyse the AEM Rules code
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_KEY }}
run: |
mvn clean package \
org.jacoco:jacoco-maven-plugin:report \
org.eluder.coveralls:coveralls-maven-plugin:report \
sonar:sonar -Dsonar.host.url=https://sonarcloud.io \
-Dsonar.organization=wttech \
-Dsonar.projectKey=wttech_AEM-Rules-for-SonarQube
org.jacoco:jacoco-maven-plugin:report
9 changes: 4 additions & 5 deletions .github/workflows/test-instalation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@ jobs:
strategy:
matrix:
sonarqube-image:
- 'sonarqube:8.9-community'
- 'sonarqube:9.4-community'
- 'sonarqube:9.9-community'
- 'sonarqube:lts-community'
- 'sonarqube:latest'
fail-fast: false
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v3
uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
java-version: 17
distribution: 'adopt'
cache: maven
- run: mvn clean package
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[![Wunderman Thompson Technology logo](assets/wtt-logo.png)](http://www.cognifide.com/)
[![Wunderman Thompson Technology logo](assets/vml-logo.png)](http://www.cognifide.com/)

![Builds Status](https://github.com/wttech/AEM-Rules-for-SonarQube/actions/workflows/build.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/Cognifide/AEM-Rules-for-SonarQube/badge.svg?branch=master)](https://coveralls.io/github/Cognifide/AEM-Rules-for-SonarQube?branch=master)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=AEM-Rules-for-SonarQube&metric=alert_status)](https://sonarcloud.io/dashboard?id=AEM-Rules-for-SonarQube)
# About AEM Rules for SonarQube

![AEM Rules for SonarQube](https://raw.githubusercontent.com/wttech/AEM-Rules-for-SonarQube/master/assets/logo.png)
Expand Down
Binary file added assets/vml-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/wtt-logo.png
Binary file not shown.

0 comments on commit aa4d517

Please sign in to comment.