Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] dev from cnescatlab:dev #9

Open
wants to merge 574 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
574 commits
Select commit Hold shift + click to select a range
2324437
add new metric in report
ErwanGauduchon May 6, 2021
9bce2c5
Merge pull request #234 from cnescatlab/bugfix-215
Sancretor May 7, 2021
9cc739b
Merge pull request #227 from cnescatlab/travis-config-update
Sancretor May 7, 2021
1a1bcc4
Merge pull request #232 from cnescatlab/bugfix-204
Sancretor May 7, 2021
4f017df
Bump ua-parser-js from 0.7.21 to 0.7.28
dependabot[bot] May 7, 2021
c3ee006
Delete package-lock.json
Sancretor May 10, 2021
39e45fe
Merge pull request #237 from cnescatlab/dependabot/npm_and_yarn/ua-pa…
Sancretor May 10, 2021
3f95838
Merge pull request #236 from cnescatlab/new-report-metric
Sancretor May 10, 2021
e0cc7c9
update doc for 4.0.0 release
ErwanGauduchon May 10, 2021
076e1e3
update comments
ErwanGauduchon May 10, 2021
59928ca
Merge pull request #238 from cnescatlab/documentation-update
Sancretor May 10, 2021
69501e7
Merge pull request #235 from cnescatlab/bugfix-166
Sancretor May 10, 2021
2784b58
Bump lodash from 4.17.20 to 4.17.21
dependabot[bot] May 11, 2021
d7238b3
Delete package-lock.json
Sancretor May 11, 2021
4c235fa
Merge branch 'dev' into dependabot/npm_and_yarn/lodash-4.17.21
Sancretor May 11, 2021
ca1a5a5
Merge pull request #239 from cnescatlab/dependabot/npm_and_yarn/lodas…
Sancretor May 11, 2021
9eea1c1
add a column in md template synthesis table
ErwanGauduchon May 11, 2021
50dafbe
rename a variable to fix a code smell
ErwanGauduchon May 11, 2021
8d4fe92
update SonarQube versions supported by cnes-report
ErwanGauduchon May 11, 2021
6b43684
Merge pull request #241 from cnescatlab/markdown-fix
Sancretor May 11, 2021
f27fbb0
Merge pull request #242 from cnescatlab/code-smell-fix
Sancretor May 11, 2021
e36a4d6
Merge pull request #243 from cnescatlab/supported-sq-versions-update
Sancretor May 12, 2021
c9b200e
fix replacement of XX-MAXCOVERAGE-XX (#244)
ErwanGauduchon May 12, 2021
abc9000
Merge pull request #245 from cnescatlab/bugfix-244
Sancretor May 12, 2021
ad52d15
update libraries versions in pom + fix deprecation
ErwanGauduchon May 17, 2021
b91c0d2
add language to plugin web page + fix translations
ErwanGauduchon May 17, 2021
e3dae52
add rating logos + quality gate status
ErwanGauduchon May 20, 2021
9836d86
add security review rating + fix images display
ErwanGauduchon May 20, 2021
dea1637
add detailed technical debt to the report
ErwanGauduchon May 25, 2021
8589ff5
add median of lines of code per file to the report
ErwanGauduchon May 26, 2021
b47d731
add adherence to coding standard to the report
ErwanGauduchon May 26, 2021
510c994
add a picture for global quality gate status
ErwanGauduchon May 26, 2021
65bd57e
Merge pull request #252 from cnescatlab/libraries-versions-upgrade
Sancretor May 27, 2021
646ea75
Remove US
ErwanGauduchon May 27, 2021
23e1ea2
Merge pull request #253 from cnescatlab/language-selection
Sancretor May 27, 2021
37cc4c9
add properties to configure templates paths
ErwanGauduchon May 28, 2021
16a7b69
add precisions to comments
ErwanGauduchon May 28, 2021
582734d
add explanation for failed quality gate conditions
ErwanGauduchon May 31, 2021
6263ada
improve test coverage on new code
ErwanGauduchon May 31, 2021
cc71df2
fix code smell
ErwanGauduchon Jun 1, 2021
ba5ebae
add paramaters to web app
ErwanGauduchon Jun 2, 2021
c97d303
improve code quality
ErwanGauduchon Jun 2, 2021
f4275f3
Merge pull request #254 from cnescatlab/report-enhancements
Sancretor Jun 3, 2021
5913514
Bump httpclient from 4.5.6 to 4.5.13
dependabot[bot] Jun 4, 2021
b8a3873
add requested changes
ErwanGauduchon Jun 4, 2021
1752be1
make issues count table clearer
ErwanGauduchon Jun 4, 2021
a007c59
Merge pull request #260 from cnescatlab/dependabot/maven/org.apache.h…
Sancretor Jun 9, 2021
69eb319
Merge pull request #259 from cnescatlab/configurable-template-web
Sancretor Jun 9, 2021
e18031a
Merge pull request #261 from cnescatlab/issues-count-improvement
Sancretor Jun 9, 2021
5b49d6a
setup github actions
ErwanGauduchon Jun 17, 2021
4a96ba5
fix failed builds
ErwanGauduchon Jun 17, 2021
3f2f3b7
disable shallow clone
ErwanGauduchon Jun 17, 2021
4da0642
try older ubuntu version
ErwanGauduchon Jun 17, 2021
28952c4
fix error 255
ErwanGauduchon Jun 17, 2021
b578988
remove branch parameter
ErwanGauduchon Jun 17, 2021
5cfa38d
add debug
ErwanGauduchon Jun 17, 2021
fba7337
add more debug
ErwanGauduchon Jun 17, 2021
fb8483d
add exception in catch
ErwanGauduchon Jun 17, 2021
967959d
add exception stack trace
ErwanGauduchon Jun 17, 2021
4f7fc16
add sleep
ErwanGauduchon Jun 17, 2021
7f2b087
add a loop waiting for analysis result processing
ErwanGauduchon Jun 17, 2021
272c4d4
add waiting message + put curl in silent mode
ErwanGauduchon Jun 22, 2021
b47586d
Merge pull request #263 from cnescatlab/github-actions-setup
Sancretor Jun 23, 2021
50e444e
refactor in progress
ErwanGauduchon Jul 2, 2021
fb27b62
add tests
ErwanGauduchon Jul 15, 2021
14af2a2
fix some code smells
ErwanGauduchon Jul 15, 2021
8c1aa16
improve test coverage
ErwanGauduchon Jul 15, 2021
512f78b
delete warnings + update maven dependencies
ErwanGauduchon Jul 16, 2021
612b531
factorize duplicated code
ErwanGauduchon Jul 21, 2021
737c77e
fix code smells
ErwanGauduchon Jul 21, 2021
8492fdb
split code in standalone/plugin providers
ErwanGauduchon Jul 30, 2021
09eacb4
fix NullPointerException
ErwanGauduchon Aug 2, 2021
ada1810
Merge pull request #265 from cnescatlab/code-refactoring
Sancretor Aug 10, 2021
5ef8fa6
Update ciManagement in pom
Sancretor Aug 10, 2021
403f7f5
Update sonar-api-plugin version in pom
Sancretor Aug 10, 2021
9be03ec
Use last 8.9 SonarQUue Docker imaage in CI
Sancretor Aug 10, 2021
3383a53
Separate data into sections in Word/MD templates
Sancretor Aug 11, 2021
3bb513b
Merge pull request #267 from cnescatlab/update-default-template
ErwanGauduchon Aug 11, 2021
4d7dc2c
Add build instructions in README
Sancretor Aug 12, 2021
bbab626
Merge pull request #271 from cnescatlab/bugfix-268
ErwanGauduchon Aug 12, 2021
0b432c5
add new charts to the docx report
ErwanGauduchon Aug 12, 2021
d02bb28
improve code quality
ErwanGauduchon Aug 12, 2021
94fee3f
Downgrade SonarQube libs for 8.9.x compatibility
Sancretor Aug 12, 2021
bd02f53
Merge pull request #272 from cnescatlab/downgrade-sonarqube-libs
ErwanGauduchon Aug 12, 2021
fb710e6
Refactor time data provider
Sancretor Aug 13, 2021
b259f07
Use int instead of double in Value
Sancretor Aug 13, 2021
41a7744
Refactor Facet provider
Sancretor Aug 13, 2021
58e1a14
Indicate that the value is expressed in %
Sancretor Aug 19, 2021
c7e75fd
Indicate that the value is expressed in %
Sancretor Aug 19, 2021
2474ae8
Indicate that the value is expressed in %
Sancretor Aug 19, 2021
bad6af9
Remove unused import
Sancretor Aug 19, 2021
be63ec7
Remove unused imports
Sancretor Aug 19, 2021
2412889
Merge pull request #275 from cnescatlab/refactor-new-charts
Sancretor Aug 19, 2021
803dd1f
Add a note regarding SQ server logs
Sancretor Aug 20, 2021
b36a250
Add empty issues unit test
Sancretor Aug 23, 2021
7d01433
Add partial tests for absract issues provider
Sancretor Aug 24, 2021
6b44080
Add missing tests for abstract issues provider
Sancretor Aug 24, 2021
b14f685
Fix wrong package path
Sancretor Aug 24, 2021
16b9567
Initialise unit test for abstract quality gate provider
Sancretor Aug 24, 2021
9401652
Add more tests for abstract quality gate
Sancretor Aug 25, 2021
ba9e938
Add tests to abstract quality gate provider
Sancretor Aug 25, 2021
5d5befd
Add unit test for AbstractQualityProfileProvider
Sancretor Aug 25, 2021
2fdc533
Add tests for MeasureProvider
Sancretor Aug 25, 2021
df9ca71
Add tests for MeasureProvider
Sancretor Aug 25, 2021
7c29047
Add tests for ComponentProvider
Sancretor Aug 25, 2021
87c5b1d
Add tests for SecurityHotspotsProvider
Sancretor Aug 26, 2021
81fa45d
Add tests for ProjectProvider
Sancretor Aug 26, 2021
0e45215
Remove useless imports
Sancretor Aug 26, 2021
4da88c6
Add test for FacetsProvider
Sancretor Aug 26, 2021
067010a
Fix issue with excel date tests
Sancretor Aug 26, 2021
093677c
Add tests for Report Webservice
Sancretor Aug 27, 2021
2cc58d8
Merge pull request #277 from cnescatlab/add-unit-tests
Sancretor Aug 27, 2021
75b52dc
Replace french sentence by an english one
Sancretor Aug 27, 2021
6c92b13
Merge pull request #278 from cnescatlab/bugfix-276
Sancretor Aug 27, 2021
c276829
Fix security issues in JS dependencies
Sancretor Aug 27, 2021
2f91f6e
Fix parsing exception with technical debt measure
Sancretor Sep 13, 2021
f22f646
Restrict plugin configuration to APP level
Sancretor Sep 14, 2021
61f17b7
Merge pull request #283 from cnescatlab/bugfix-281
Sancretor Sep 14, 2021
81d4ff1
Merge pull request #284 from cnescatlab/bugfix-282
Sancretor Sep 14, 2021
600485e
Upgrade tmpl to resolve security issue
Sancretor Sep 23, 2021
e5c6aba
Merge pull request #279 from cnescatlab/dev
Sancretor Sep 23, 2021
f03a424
Indicate a JDK is needed for the build process
Sancretor Sep 23, 2021
fb9f634
Get true main branch instead of hardcoded default
Sancretor Jan 5, 2022
c1a5b8e
Add unit test for DefaultBranch
Sancretor Jan 6, 2022
bb9124d
Merge pull request #295 from cnescatlab/bugfix-292
Sancretor Jan 11, 2022
95cde12
Add test metrics summary in reports
Sancretor Jan 14, 2022
bb7b55a
Add tests for coverage
Sancretor Jan 14, 2022
735a8d9
Refactor metrics properties management
Sancretor Jan 14, 2022
beb7936
Refactor facets properties management
Sancretor Jan 14, 2022
1c933ea
Replace harcoded template paths with properties
Sancretor Jan 14, 2022
9ecb70c
Refactor Markdown Exporter
Sancretor Jan 14, 2022
6024346
Refactor Docx Exporter
Sancretor Jan 14, 2022
68e7e26
Replace useless function by properties
Sancretor Jan 14, 2022
ce0f4be
Merge pull request #296 from cnescatlab/enhancement-291
Sancretor Jan 18, 2022
24681ce
Split DataAdapter in multiple smaller classes
Sancretor Jan 18, 2022
18b7c01
Move method from Adapter to Model
Sancretor Jan 18, 2022
453c4f1
Format code style in modified files
Sancretor Jan 18, 2022
da9877c
Fix various issues
Sancretor Jan 18, 2022
2089d78
Update some dependencies
Sancretor Jan 18, 2022
fd40c33
Format code
Sancretor Jan 18, 2022
ee0e1f3
Move & update tests on placeholders
Sancretor Jan 19, 2022
0125ac8
Remove unused import
Sancretor Jan 19, 2022
ee7518f
Add tests for IssuesAdapter
Sancretor Jan 19, 2022
283b481
Format file
Sancretor Jan 19, 2022
0c929b0
Add test for RuleComparator
Sancretor Jan 19, 2022
72a7aca
Add tests for DataAdapter
Sancretor Jan 19, 2022
bf04ba6
Add tests for SecurityHotspotsAdapter
Sancretor Jan 19, 2022
8374f93
Remove useless complexity in version management
Sancretor Jan 20, 2022
cf7e80a
Remove exception on non compatible versions & add warnings
Sancretor Jan 20, 2022
38bb5b5
Add link to the compatibility matrix
Sancretor Jan 20, 2022
6a25bb3
Remove forgotten useless debug log
Sancretor Jan 20, 2022
b69a3ac
Merge pull request #301 from cnescatlab/enhancement-287
Sancretor Jan 24, 2022
c031149
Merge pull request #300 from cnescatlab/bugfix-297
Sancretor Jan 26, 2022
953b8ad
Merge pull request #299 from cnescatlab/refactor-exporters
Sancretor Jan 26, 2022
a9cd6c7
Remove useless request in properties
Sancretor Jan 26, 2022
e656523
Update pom version for new release
Sancretor Jan 26, 2022
b5deb85
Replace tests numbers with 0 when there's none
Sancretor Jan 31, 2022
4800b85
Modify method signature to match others
Sancretor Jan 31, 2022
25ee913
Update test for placeholders
Sancretor Jan 31, 2022
8bde226
Merge pull request #304 from cnescatlab/bugfix-303
Sancretor Jan 31, 2022
cabd9e7
Merge pull request #302 from cnescatlab/dev
Sancretor Feb 22, 2022
fb23b6b
#309 analysis-report.docx corrupt fixed
un0tec Mar 2, 2022
b40c1b7
Merge pull request #310 from un0tec/dev-un0tec
Sancretor Mar 9, 2022
63a9d86
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Mar 26, 2022
abc4516
Change doc & version to 4.1.1
Sancretor Apr 26, 2022
b86f8ea
Merge pull request #315 from cnescatlab/dev
Sancretor Apr 26, 2022
1e2b244
Merge pull request #313 from cnescatlab/dependabot/npm_and_yarn/minim…
Sancretor May 3, 2022
41cefb0
add new Security hotspot keys for version 9.x
May 3, 2022
81cb79a
fix unit test
May 3, 2022
ef307e6
Merge pull request #316 from flyingcircle/dev
Sancretor May 4, 2022
cc3f62f
Update poi-ooxml lib to latest compatible version
Sancretor Mar 9, 2022
41d0682
Simplify chart update methods
Sancretor Mar 9, 2022
4361b8a
Fix date format on charts
Sancretor May 4, 2022
1549bc3
Fix chart axis date formatting to fix ODT compatibility
Sancretor May 4, 2022
5e1c3bd
Merge pull request #311 from cnescatlab/bugfix-307
Sancretor May 13, 2022
5a31e6e
Create Issues class to get data on external issues
Sancretor Jun 1, 2022
85a8603
Move Report method to Issues
Sancretor Jun 3, 2022
f91c16a
Merge pull request #318 from cnescatlab/bugfix-317
Sancretor Jun 8, 2022
50fd725
Move filename fixing method and add multiple non valid chars
Sancretor Jun 8, 2022
c7f3f1f
Merge pull request #323 from cnescatlab/bugfix-319
Sancretor Jun 8, 2022
36c32ad
Increase tool minor version digit for next release
Sancretor Jun 13, 2022
dfa7385
Update tool version in package.json
Sancretor Jun 13, 2022
b32babe
Merge pull request #324 from cnescatlab/dev
Sancretor Jun 13, 2022
4c0b7e9
fix: Sanitize filenames to remove illegal characters
louisjdmartin Oct 11, 2022
ae08cf2
Update version to 4.1.3
louisjdmartin Oct 12, 2022
526dc1f
Merge pull request #331 from cnescatlab/issue-328
louisjdmartin Oct 12, 2022
93feddd
Merge pull request #332 from cnescatlab/dev
louisjdmartin Oct 12, 2022
4b97009
Change version of plugins and dependencies and stop using Java 8
Apr 17, 2023
38128ae
Update sonar-cnes-report for SonarQube LTS9 compatibility
Apr 24, 2023
55556c2
Update README.md
diegorodriguez31 Apr 26, 2023
7253c19
Update pom.xml
diegorodriguez31 May 2, 2023
6f5c475
Update README.md
diegorodriguez31 May 2, 2023
51cc2bf
Merge pull request #350 from cnescatlab/feature-update-to-sq-lts9
diegorodriguez31 May 2, 2023
fed8214
Tackling issue #351
May 3, 2023
f7ab23b
Merge pull request #353 from tcsabina/master
louisjdmartin May 3, 2023
a85308a
Fix sonar project key
louisjdmartin Jan 5, 2024
d1976a0
Fix sonar settings in pom.xml
louisjdmartin Jan 5, 2024
c6ccb1c
Upgrade Java version for scan
louisjdmartin Jan 8, 2024
13321c9
Use Java 17 for CI
louisjdmartin Jan 8, 2024
7fbb82f
Cleaning sonar-project.properties
louisjdmartin Jan 8, 2024
f2f1190
Update version in pom.xml
louisjdmartin Jan 12, 2024
dd5d9f1
Merge pull request #375 from cnescatlab/fix-ci
louisjdmartin Jan 12, 2024
693c27a
Bump semver from 5.7.1 to 5.7.2
dependabot[bot] Jan 12, 2024
80182c8
Merge pull request #379 from cnescatlab/dependabot/npm_and_yarn/semve…
Topin2001 Jan 12, 2024
230fb51
Bump ua-parser-js from 0.7.28 to 0.7.37
dependabot[bot] Jan 12, 2024
b8e8c28
Merge pull request #372 from cnescatlab/dependabot/npm_and_yarn/ua-pa…
Topin2001 Jan 12, 2024
dd05b84
Bump terser from 4.8.0 to 4.8.1
dependabot[bot] Jan 12, 2024
8b00883
Merge pull request #325 from cnescatlab/dependabot/npm_and_yarn/terse…
louisjdmartin Jan 18, 2024
8393e1a
Bump com.google.guava:guava from 31.1-jre to 32.0.0-jre
dependabot[bot] Jan 19, 2024
c2a8de3
Merge pull request #370 from cnescatlab/dependabot/maven/com.google.g…
Topin2001 Jan 19, 2024
c5cf311
Bump loader-utils from 1.4.0 to 1.4.2
dependabot[bot] Jan 19, 2024
58dc0ca
Merge pull request #337 from cnescatlab/dependabot/npm_and_yarn/loade…
Topin2001 Jan 19, 2024
c9acc50
Bump decode-uri-component from 0.2.0 to 0.2.2
dependabot[bot] Jan 19, 2024
e7dc993
Merge pull request #341 from cnescatlab/dependabot/npm_and_yarn/decod…
Topin2001 Jan 19, 2024
56ae175
Bump browserify-sign from 4.2.1 to 4.2.2
dependabot[bot] Jan 19, 2024
a9ac0b5
Merge pull request #377 from cnescatlab/dependabot/npm_and_yarn/brows…
Topin2001 Jan 19, 2024
48c7952
Bump @babel/traverse from 7.15.0 to 7.23.7
dependabot[bot] Jan 19, 2024
1717443
Merge pull request #378 from cnescatlab/dependabot/npm_and_yarn/babel…
Topin2001 Jan 19, 2024
746b4fe
FMA - Montée de version vers JAVA 21 et du plugin Mockito
dev31520 Feb 7, 2024
050b281
FMA - Montée de version de la pipeline d'intégration continue JAVA
dev31520 Feb 7, 2024
3bb5f05
use java 17 for build
louisjdmartin Feb 7, 2024
14e83e5
Merge pull request #386 from cnescatlab/java_21
louisjdmartin Feb 7, 2024
c4b657e
FMA - Draft release upgrade to java 17
dev31520 Feb 10, 2024
b376d96
FMA - downgrade to java 11
dev31520 Feb 11, 2024
eb9d8db
FMA - Update jvm actions to v3
dev31520 Feb 12, 2024
6f947a1
FMA - image actions 'adopts' v2
dev31520 Feb 12, 2024
3e14321
Merge pull request #387 from cnescatlab/java_17
louisjdmartin Feb 16, 2024
7f61850
support SQ10 + add expiration date to token
Topin2001 May 22, 2024
ac080b7
Remove plugin func to use only standalone, even for plugin uses
Topin2001 May 23, 2024
965f42b
Fix broken CI
Topin2001 May 27, 2024
7669974
update maven dependencies
Topin2001 May 28, 2024
1106ed8
Added branch name in md report
Topin2001 May 28, 2024
68b2d7d
Implement git branch display on docx file
Topin2001 May 31, 2024
e9465d3
Update yarn.lock file
Topin2001 May 31, 2024
9751abd
Added ProjectBranch Tests
Topin2001 Jun 4, 2024
793c250
Update plugin version + fix jacoco report
Topin2001 Jun 4, 2024
0bb01a6
Implement new qualityGates tests
Topin2001 Jun 4, 2024
8bfe242
Fix untest case of matching qualitygate
Topin2001 Jun 4, 2024
afb8e05
Added starting programs tests
Topin2001 Jun 4, 2024
ba95ce8
Fix sonarlint issues
Topin2001 Jun 4, 2024
de4a418
Fix intellij issues
Topin2001 Jun 4, 2024
550d0f7
Fix sonarlint issues and crlf
Topin2001 Jun 4, 2024
9f1cdd5
Clean update of front according to the sonar plugin exemple method
Topin2001 Jun 5, 2024
694aa3f
Update and clean the front project, added new style.css file
Topin2001 Jun 5, 2024
23ebe38
Update conf repository location
Topin2001 Jun 11, 2024
50e8184
Added generation report page from project page
Topin2001 Jun 11, 2024
1d5c828
Allow for all SQ 10 versions; even if dev only for 10.5
Topin2001 Jun 11, 2024
878516f
Update documentation
Topin2001 Jun 11, 2024
ee4423e
Merge pull request #397 from cnescatlab/update/sq10-support
Topin2001 Jun 27, 2024
0270ee1
Add permissions for github action token
louisjdmartin Jun 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/close-milestone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Description
# ===========
# This workflow is triggered each time the Java CI workflow succeeds
# on master.
# It looks for a milestone that is completed and close it.
---
name: Close Milestone

on:
workflow_run:
workflows: ["Java CI"]
branches: [master]
types:
- completed

jobs:
close:
name: Close completed milestone
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Close a milestone if completed
run: |
milestones=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/milestones \
| jq -r '. | map(select(.open_issues == 0 and .closed_issues > 0 and .state == "open"))')
if [ "$milestones" != "[]" ]
then
milestone_number=$(echo "$milestones" | jq -r '.[0].number')
curl -s \
-X PATCH \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/milestones/${milestone_number} \
-d '{"state":"closed"}'
fi
env:
# Personal access tokens should be generated from https://github.com/settings/tokens with repository scope
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}
59 changes: 59 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Description
# ===========
# This workflow is triggered each time a milestone is closed
# It builds the jar, generates release notes, pushes a new tag
# and makes a draft release with these elements.
---
name: Draft Release

on:
milestone:
types: [closed]

jobs:
release:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B clean package
- name: Create Release Notes
uses: docker://decathlon/release-notes-generator-action:2.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OUTPUT_FOLDER: temp_release_notes
- name: Set tag and project values
run: |
echo "tag=$(cat pom.xml | grep "<version>.*</version>" | head -1 |awk -F'[><]' '{print $3}')" >> $GITHUB_ENV
echo "project=$(echo ${{ github.repository }} | awk -F '/' '{print $2}')" >> $GITHUB_ENV
- name: Create a tag for the release
run: |
git config --global user.name "GitHub Actions"
git config --global user.email [email protected]
git tag -a ${{ env.tag }} -m "Release ${{ env.tag }}"
git push origin ${{ env.tag }}
- name: Create GitHub Release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
artifacts: "target/${{ env.project }}-${{ env.tag }}.jar"
tag: ${{ env.tag }}
name: ${{ env.project }} ${{ env.tag }}
bodyFile: "temp_release_notes/release_file.md"
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
125 changes: 125 additions & 0 deletions .github/workflows/java-continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Description
# ===========
# This workflow is triggered each time
# commits are pushed to GitHub or a pull request is opened.
# It launches three jobs in parallel : a build with java 8,
# a build with java 11 and a SonarCloud analysis.
---
name: Java CI

on: [push, pull_request]

jobs:

build:
runs-on: ubuntu-22.04
strategy:
matrix:
java: [ '17' ]
name: Java ${{ matrix.Java }} CI
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Build with Maven
run: mvn -B clean package
- name: Test cnes-report
env:
SONARQUBE_VERSION: 10.5-community
run: |
version=$(cat pom.xml | grep "<version>.*</version>" | head -1 |awk -F'[><]' '{print $3}');
echo "Starting docker";
docker run --name sonarqube_${SONARQUBE_VERSION} -d -p 9000:9000 sonarqube:${SONARQUBE_VERSION};
echo "Inject plugin";
docker cp target/sonar-cnes-report-${version}.jar sonarqube_${SONARQUBE_VERSION}:/opt/sonarqube/extensions/plugins/;
docker restart sonarqube_${SONARQUBE_VERSION};
echo "Waiting up to 5 minutes for SonarQube...";
counter=0;
limit=300;
status_sonar=$(curl -s "http://localhost:9000/api/system/status" | grep "\"status\":\"UP\"" > /dev/null; echo $?);
while [[ 0 -ne $status_sonar && $counter -le $limit ]]; do
sleep 1;
counter=$(( $counter + 1 ));
status_sonar=$(curl -s "http://localhost:9000/api/system/status" | grep "\"status\":\"UP\"" > /dev/null; echo $?);
done;
echo "SonarQube is $([[ 0 -eq $status_sonar ]] && echo "up" || echo "down"), after $counter tries";
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.organization=default-organization;
echo "Waiting for the SonarQube Compute Engine task to be completed...";
ce=$(grep ceTaskUrl= target/sonar/report-task.txt);
ceTaskUrl=${ce:10};
continue=true;
while [ $continue = true ]; do
status=$(curl -s -u admin:admin ${ceTaskUrl} | jq -r '.task.status');
if [ $status = SUCCESS ]
then
continue=false;
elif [ $status = FAILED ] || [ $status = CANCELED ]
then
exit 1;
else
sleep 1;
fi
done;
token_sonarqube=$(curl -s -X POST -H "Content-Type&#58; application/x-www-form-urlencoded" -d "name=admin_token" -u admin:admin http://localhost:9000/api/user_tokens/generate | jq -r '.token');
java -jar target/sonar-cnes-report-${version}.jar -t ${token_sonarqube} -p fr.cnes.sonar:cnesreport -s http://localhost:9000;
url_cnesreport="http://localhost:9000/api/cnesreport/report?key=fr.cnes.sonar%3Acnesreport&author=github-actions&token=${token_sonarqube}";
curl -u admin:admin ${url_cnesreport} -O -J;

code-analysis:
runs-on: ubuntu-22.04
name: SonarCloud Code Analysis
# It's not possible to launch an analysis on external pull requests
if: ${{ github.repository_owner == 'cnescatlab' }}
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Cache SonarCloud packages
uses: actions/cache@v2
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build and analyze
env:
# Needed to get some information about the pull request, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.token=$SONAR_TOKEN
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
target
.idea
.vscode
.classpath
.project
.settings
.scannerwork
*.iml
*.iml
classes
node_modules/
node/
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

48 changes: 29 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
# Contributing to sonar-cnes-report
First off, thanks for taking the time to contribute!
The following is a set of guidelines for contributing to sonar-cnes-report, which are hosted in the [Lequal Organization](https://github.com/lequal) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
# Contributing to CNES Report
First off, thanks for taking the time to contribute!
The following is a set of guidelines for contributing to CNES Report, which are hosted in the [CATLab organization](https://github.com/cnescatlab) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

#### Table Of Contents

[Code of Conduct](#code-of-conduct)

[How Can I Contribute?](#how-can-i-contribute) 
* [Reporting Bugs](#reporting-bugs) 
* [Suggesting Enhancements](#suggesting-enhancements) 
* [Pull Requests](#pull-requests)

[Git Commit Messages](#git-commit-messages)
+ [Code of Conduct](#code-of-conduct)
+ [How Can I Contribute?](#how-can-i-contribute) 
* [Reporting Bugs](#reporting-bugs) 
* [Suggesting Enhancements](#suggesting-enhancements) 
* [Pull Requests](#pull-requests)
* [Git Commit Messages](#git-commit-messages)

## Code of Conduct
This project and everyone participating in it is governed by the [Lequal Code of Conduct](CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code. Please report unacceptable behavior to [[email protected]](mailto:[email protected]).
This project and everyone participating in it is governed by the [CATLab Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to us or [GitHub](https://github.com/contact/report-content).

## How Can I Contribute?

Expand All @@ -25,6 +21,7 @@ Before creating bug reports, please check if the problem has already been report
#### How Do I Submit A (Good) Bug Report?
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/).
Provide information by filling [the template](ISSUE_TEMPLATE.md).

Explain the problem and include additional details to help maintainers reproduce the problem:
* **Use a clear and descriptive title** for the issue to identify the problem.
* **Describe the exact steps which reproduce the problem** in as many details as possible. When listing steps, don't just say what you did, but explain how you did it.
Expand All @@ -35,7 +32,7 @@ Explain the problem and include additional details to help maintainers reproduce

Provide more context by answering these questions:
* **Did the problem start happening recently** (e.g. after updating to a new version of the plugin or SonarQube) or was this always a problem?
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can download older versions from [the releases page](https://github.com/lequal/sonar-cnes-cxx-plugin/releases).
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can download older versions from [the releases page](https://github.com/cnescatlab/sonar-cnes-report/releases).
* **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.

Include details about your configuration and environment:
Expand All @@ -56,14 +53,27 @@ Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com
* **Specify the SonarQube version you're using.** The SonarQube version is mentionned at the bottom of the web page.

### Pull Requests
* Fill in [the required template](PULL_REQUEST_TEMPLATE.md)
* Fill in [the required template](.github/PULL_REQUEST_TEMPLATE.md)
* Do not include issue numbers in the PR title
* Include screenshots and animated GIFs in your pull request whenever possible.
* Follow the Java styleguides.
* Include screenshots and animated GIFs in your pull request whenever possible
* Follow the Java styleguides and fix all new SonarCloud issues
* Test your code before opening the PR
* Set the current `dev-*` branch as the target branch for your PR

## Git Commit Messages
### Git Commit Messages
* Start with the issue you are handling ("#187 ...")
* Use the present tense ("Add feature" not "Added feature")
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
* Limit the first line to 72 characters or less
* Reference issues and pull requests liberally after the first line
* When only changing documentation, include `[ci skip]` in the commit description

## Management of contributions

All contributions are welcome. They are made via a *pull request* on the branch `dev` which is the branch of the next version.

* pull request with **major** changes must be approved by at least one maintainer of each team and the CATLab.

* pull requests with **minor** changes must be approved by at least one organization's member.

All maintainers have the ability to merge *pull requests* on the `dev` branch. If several maintainers belong to the same team, their validation only counts for one organization.
7 changes: 0 additions & 7 deletions ISSUE_TEMPLATE.md

This file was deleted.

Loading