Skip to content

Commit e180544

Browse files
authored
Merge pull request #401 from cnescatlab/dev
Pre-release 5.0.0, support SonarQube 10.x.x
2 parents 7a4635e + 0270ee1 commit e180544

File tree

71 files changed

+3157
-8358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3157
-8358
lines changed

.github/workflows/close-milestone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
close:
1818
name: Close completed milestone
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-22.04
2020
if: ${{ github.event.workflow_run.conclusion == 'success' }}
2121
steps:
2222
- name: Close a milestone if completed

.github/workflows/draft-release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@ on:
1212

1313
jobs:
1414
release:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
16+
permissions:
17+
contents: write
1618
steps:
1719
- name: Check out repository code
18-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1921
- name: Setup java
20-
uses: actions/setup-java@v2
22+
uses: actions/setup-java@v4
2123
with:
2224
distribution: 'adopt'
2325
java-version: '17'
2426
- name: Cache Maven packages
25-
uses: actions/cache@v2
27+
uses: actions/cache@v4
2628
with:
2729
path: ~/.m2
2830
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/java-continuous-integration.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ on: [push, pull_request]
1212
jobs:
1313

1414
build:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616
strategy:
1717
matrix:
1818
java: [ '17' ]
1919
name: Java ${{ matrix.Java }} CI
2020
steps:
2121
- name: Check out repository code
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525
- name: Setup java
26-
uses: actions/setup-java@v2
26+
uses: actions/setup-java@v4
2727
with:
2828
distribution: 'adopt'
2929
java-version: ${{ matrix.java }}
3030
- name: Cache Maven packages
31-
uses: actions/cache@v2
31+
uses: actions/cache@v4
3232
with:
3333
path: ~/.m2
3434
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3535
restore-keys: ${{ runner.os }}-m2
3636
- name: Cache node_modules
37-
uses: actions/cache@v2
37+
uses: actions/cache@v4
3838
with:
3939
path: node_modules
4040
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
@@ -43,14 +43,13 @@ jobs:
4343
run: mvn -B clean package
4444
- name: Test cnes-report
4545
env:
46-
SONARQUBE_VERSION: 9.9-community
46+
SONARQUBE_VERSION: 10.5-community
4747
run: |
4848
version=$(cat pom.xml | grep "<version>.*</version>" | head -1 |awk -F'[><]' '{print $3}');
4949
echo "Starting docker";
5050
docker run --name sonarqube_${SONARQUBE_VERSION} -d -p 9000:9000 sonarqube:${SONARQUBE_VERSION};
5151
echo "Inject plugin";
5252
docker cp target/sonar-cnes-report-${version}.jar sonarqube_${SONARQUBE_VERSION}:/opt/sonarqube/extensions/plugins/;
53-
docker exec -u root sonarqube_${SONARQUBE_VERSION} chown sonarqube:sonarqube /opt/sonarqube/extensions/plugins/sonar-cnes-report-${version}.jar;
5453
docker restart sonarqube_${SONARQUBE_VERSION};
5554
echo "Waiting up to 5 minutes for SonarQube...";
5655
counter=0;
@@ -61,6 +60,7 @@ jobs:
6160
counter=$(( $counter + 1 ));
6261
status_sonar=$(curl -s "http://localhost:9000/api/system/status" | grep "\"status\":\"UP\"" > /dev/null; echo $?);
6362
done;
63+
echo "SonarQube is $([[ 0 -eq $status_sonar ]] && echo "up" || echo "down"), after $counter tries";
6464
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.organization=default-organization;
6565
echo "Waiting for the SonarQube Compute Engine task to be completed...";
6666
ce=$(grep ceTaskUrl= target/sonar/report-task.txt);
@@ -84,7 +84,7 @@ jobs:
8484
curl -u admin:admin ${url_cnesreport} -O -J;
8585
8686
code-analysis:
87-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-22.04
8888
name: SonarCloud Code Analysis
8989
# It's not possible to launch an analysis on external pull requests
9090
if: ${{ github.repository_owner == 'cnescatlab' }}

README.md

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ For legacy versions, check the wiki page here : [Note on legacy versions](https:
116116
<table>
117117
<tr>
118118
<td><b>cnesreport <br>\<br> SonarQube</b></td>
119-
<td><b>3.0.x<br/>Standalone + Plugin</td>
120-
<td><b>3.1.0<br/>Standalone + Plugin</td>
121-
<td><b>3.2.x<br/>Standalone + Plugin</td>
122-
<td><b>3.3.x<br/>Standalone + Plugin</td>
123-
<td><b>4.0.0<br/>Standalone + Plugin</td>
124-
<td><b>4.1.x<br/>Standalone + Plugin</td>
125-
<td><b>4.2.x<br/>Standalone + Plugin</td>
119+
<td><b>3.0.x<br/>Standalone + Plugin</b></td>
120+
<td><b>3.1.0<br/>Standalone + Plugin</b></td>
121+
<td><b>3.2.x<br/>Standalone + Plugin</b></td>
122+
<td><b>3.3.x<br/>Standalone + Plugin</b></td>
123+
<td><b>4.0.0<br/>Standalone + Plugin</b></td>
124+
<td><b>4.1.x<br/>Standalone + Plugin</b></td>
125+
<td><b>4.2.x<br/>Standalone + Plugin</b></td>
126+
<td><b>4.3.x<br/>Standalone + Plugin</b></td>
127+
<td><b>5.0.x<br/>Standalone + Plugin</b></td>
126128
</tr>
127129
<tr>
128130
<td><b>7.9.x</b></td>
@@ -133,6 +135,8 @@ For legacy versions, check the wiki page here : [Note on legacy versions](https:
133135
<td>-</td>
134136
<td>-</td>
135137
<td>-</td>
138+
<td>-</td>
139+
<td>-</td>
136140
</tr>
137141
<tr>
138142
<td><b>8.9.x</b></td>
@@ -143,6 +147,8 @@ For legacy versions, check the wiki page here : [Note on legacy versions](https:
143147
<td>X</td>
144148
<td>X</td>
145149
<td>-</td>
150+
<td>-</td>
151+
<td>-</td>
146152
</tr>
147153
<tr>
148154
<td><b>9.9.x (LTS)</b></td>
@@ -153,7 +159,21 @@ For legacy versions, check the wiki page here : [Note on legacy versions](https:
153159
<td>-</td>
154160
<td>-</td>
155161
<td>X</td>
162+
<td>X</td>
163+
<td>-</td>
156164
</tr>
165+
<tr>
166+
<td><b>10.5.x</b></td>
167+
<td>-</td>
168+
<td>-</td>
169+
<td>-</td>
170+
<td>-</td>
171+
<td>-</td>
172+
<td>-</td>
173+
<td>-</td>
174+
<td>-</td>
175+
<td>X</td>
176+
</tr>
157177
</table>
158178

159179
### How to contribute

package.json

Lines changed: 24 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,24 @@
1-
{
2-
"name": "sonar-cnes-report-plugin",
3-
"license": "GPL-3.0",
4-
"version": "4.2.0",
5-
"devDependencies": {
6-
"@babel/core": "^7.8.7",
7-
"@babel/plugin-proposal-class-properties": "^7.8.3",
8-
"@babel/preset-env": "^7.8.7",
9-
"@babel/preset-react": "^7.8.3",
10-
"@emotion/core": "^10.0.17",
11-
"@emotion/styled": "^10.0.17",
12-
"autoprefixer": "9.7.4",
13-
"babel-core": "6.14.0",
14-
"babel-jest": "^25.1.0",
15-
"babel-loader": "^8.0.6",
16-
"babel-preset-react-app": "0.2.1",
17-
"css-loader": "^3.4.2",
18-
"emotion-theming": "^10.0.19",
19-
"lodash": "4.17.21",
20-
"postcss-calc": "7.0.2",
21-
"postcss-custom-properties": "9.1.1",
22-
"postcss-loader": "3.0.0",
23-
"react": "16.13.0",
24-
"react-dev-utils": "^11.0.4",
25-
"react-dom": "16.13.0",
26-
"react-router": "3.2.6",
27-
"sonar-ui-common": "1.0.33",
28-
"style-loader": "1.1.3",
29-
"uglifyjs-webpack-plugin": "^2.2.0",
30-
"webpack": "^4.42.0"
31-
},
32-
"scripts": {
33-
"build": "node src/main/js/scripts/build.js"
34-
},
35-
"babel": {
36-
"presets": [
37-
"@babel/env",
38-
"@babel/react"
39-
],
40-
"plugins": [
41-
"@babel/plugin-proposal-class-properties"
42-
]
43-
},
44-
"dependencies": {}
45-
}
1+
{
2+
"name": "sonar-cnes-report",
3+
"license": "GPL-3.0",
4+
"version": "5.0.0",
5+
"scripts": {
6+
"build": "node scripts/build.js"
7+
},
8+
"babel": {
9+
"presets": [
10+
"react-app"
11+
]
12+
},
13+
"dependencies": {
14+
"@babel/core": "7.24.6",
15+
"babel-loader": "9.1.3",
16+
"babel-preset-react-app": "10.0.1",
17+
"css-loader": "7.1.2",
18+
"style-loader": "4.0.0",
19+
"webpack": "5.91.0"
20+
},
21+
"devDependencies": {
22+
"@babel/plugin-proposal-private-property-in-object": "7.21.11"
23+
}
24+
}

0 commit comments

Comments
 (0)