File tree Expand file tree Collapse file tree 5 files changed +42
-7
lines changed Expand file tree Collapse file tree 5 files changed +42
-7
lines changed Original file line number Diff line number Diff line change 10
10
milestone :
11
11
types : [closed]
12
12
13
+ env :
14
+ MVN_USR : ${{ secrets.MVN_USR }}
15
+ MVN_PWD : ${{ secrets.MVN_PWD }}
16
+
13
17
jobs :
14
18
release :
15
19
runs-on : ubuntu-latest
20
+ permissions :
21
+ contents : write
22
+ packages : read
16
23
steps :
17
24
- name : Check out repository code
18
25
uses : actions/checkout@v2
28
35
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
29
36
restore-keys : ${{ runner.os }}-m2
30
37
- name : Build with Maven
31
- run : mvn -B clean package
38
+ run : mvn -B clean package -s settings.xml
32
39
- name : Create Release Notes
33
40
uses : docker://decathlon/release-notes-generator-action:2.0.1
34
41
env :
Original file line number Diff line number Diff line change 8
8
name : Java CI
9
9
10
10
on : [push, pull_request]
11
+ env :
12
+ MVN_USR : ${{ secrets.MVN_USR }}
13
+ MVN_PWD : ${{ secrets.MVN_PWD }}
11
14
12
15
jobs :
13
-
16
+
14
17
build :
18
+ permissions :
19
+ packages : read
15
20
runs-on : ubuntu-latest
16
21
name : Java 17 CI
17
22
steps :
31
36
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32
37
restore-keys : ${{ runner.os }}-m2
33
38
- name : Build with Maven
34
- run : mvn -B clean test package
39
+ run : mvn -B clean test package -s settings.xml
35
40
36
41
code-analysis :
42
+ permissions :
43
+ packages : read
37
44
runs-on : ubuntu-latest
38
45
name : SonarCloud Code Analysis
39
46
# It's not possible to launch an analysis on external pull requests
66
73
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
74
# SonarCloud access token should be generated from https://sonarcloud.io/account/security/
68
75
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
69
- run : mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.organization=lequal -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
76
+ run : mvn clean -s settings.xml org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.organization=lequal -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ Here is the compatibility matrix of the plugin:
36
36
| 3.0.1 | 4.1.2 | 7.9 -> 8.2 | Fortran |
37
37
| 3.1.0 | 4.1.2 | 7.9 -> 9.9 | Fortran |
38
38
| 3.1.1 | 4.1.2 | 7.9 -> 9.9 | Fortran |
39
+ | 3.1.2 | 5.0.0 | 7.9 -> 9.9 | Fortran |
39
40
40
41
#### Run i-Code manually
41
42
If you need help to run i-Code please refer to the [ official user manual] ( https://github.com/cnescatlab/i-CodeCNES/wiki/User-Manual ) or [ i-Code issue tracker] ( https://github.com/cnescatlab/i-CodeCNES/issues ) .
Original file line number Diff line number Diff line change 85
85
<id >jitpack.io</id >
86
86
<url >https://jitpack.io</url >
87
87
</repository >
88
+ <repository >
89
+ <id >github</id >
90
+ <url >https://maven.pkg.github.com/cnescatlab/i-CodeCNES</url >
91
+ <snapshots >
92
+ <enabled >true</enabled >
93
+ </snapshots >
94
+ </repository >
88
95
</repositories >
89
96
90
97
<dependencies >
95
102
<scope >provided</scope >
96
103
</dependency >
97
104
<dependency >
98
- <groupId >com.github.lequal.i-CodeCNES </groupId >
105
+ <groupId >fr.cnes.icode </groupId >
99
106
<artifactId >icode-library</artifactId >
100
- <version >4 .1.2 </version >
101
- </dependency >
107
+ <version >5 .1.0 </version >
108
+ </dependency >
102
109
<dependency >
103
110
<groupId >commons-lang</groupId >
104
111
<artifactId >commons-lang</artifactId >
Original file line number Diff line number Diff line change
1
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0"
2
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0
4
+ http://maven.apache.org/xsd/settings-1.0.0.xsd" >
5
+
6
+ <servers >
7
+ <server >
8
+ <id >github</id >
9
+ <username >${env.MVN_USR}</username >
10
+ <password >${env.MVN_PWD}</password >
11
+ </server >
12
+ </servers >
13
+ </settings >
You can’t perform that action at this time.
0 commit comments