File tree Expand file tree Collapse file tree 6 files changed +84
-8
lines changed
hello-dangernoodle-module-a
main/java/io/dangernoodle/dummy
test/java/io/dangernoodle.dummy Expand file tree Collapse file tree 6 files changed +84
-8
lines changed Original file line number Diff line number Diff line change 1
- # maven-build.yml
2
-
3
1
name : maven-build
2
+
4
3
on :
5
4
pull_request :
6
5
push :
7
6
branches :
8
7
- main
9
8
workflow_dispatch :
9
+
10
10
jobs :
11
+ runs-on : ubuntu-latest
12
+ log-env :
13
+ steps :
14
+ - id : env
15
+ run : env | sort -n
16
+
11
17
build-main :
12
- uses : dangernoodle-io/.github/.github/workflows/maven-build.yml@jae/initial
13
- secrets : inherit
18
+ uses : dangernoodle-io/.github/.github/workflows/maven.yml@main
19
+ with :
20
+ maven-goals : verify
Original file line number Diff line number Diff line change 1
- # maven-release.yml
2
-
3
1
name : maven-release
2
+
4
3
on :
5
4
workflow_dispatch :
5
+
6
6
jobs :
7
7
build-main :
8
8
uses : dangernoodle-io/.github/.github/workflows/maven-release.yml@jae/initial
9
+ release-main :
9
10
secrets : inherit
11
+ uses : dangernoodle-io/.github/.github/workflows/maven.yml@main
12
+ with :
13
+ maven-goals : release:prepare release:perform
14
+ release : true
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3
4
4
5
<modelVersion >4.0.0</modelVersion >
5
6
11
12
12
13
<artifactId >hello-dangernoodle-module-a</artifactId >
13
14
15
+ <build >
16
+ <plugins >
17
+ <plugin >
18
+ <groupId >org.jacoco</groupId >
19
+ <artifactId >jacoco-maven-plugin</artifactId >
20
+ </plugin >
21
+ <plugin >
22
+ <groupId >com.github.hazendaz.maven</groupId >
23
+ <artifactId >coveralls-maven-plugin</artifactId >
24
+ </plugin >
25
+ </plugins >
26
+ </build >
27
+
28
+ <dependencies >
29
+ <dependency >
30
+ <groupId >org.junit.jupiter</groupId >
31
+ <artifactId >junit-jupiter</artifactId >
32
+ <scope >test</scope >
33
+ </dependency >
34
+ </dependencies >
35
+
14
36
</project >
Original file line number Diff line number Diff line change 5
5
*/
6
6
public class HelloWorldModuleA
7
7
{
8
+ public boolean foo ()
9
+ {
10
+ return true ;
11
+ }
12
+
8
13
public static void main (String [] args )
9
14
{
10
15
System .out .println ("hello world" );
Original file line number Diff line number Diff line change
1
+ package io .dangernoodle .dummy ;
2
+
3
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
4
+
5
+ import org .junit .jupiter .api .BeforeEach ;
6
+ import org .junit .jupiter .api .Test ;
7
+
8
+ public class HelloWorldModuleATest
9
+ {
10
+ private HelloWorldModuleA moduleA ;
11
+
12
+ @ BeforeEach
13
+ public void setup ()
14
+ {
15
+ moduleA = new HelloWorldModuleA ();
16
+ }
17
+
18
+ @ Test
19
+ public void testFoo ()
20
+ {
21
+ assertTrue (moduleA .foo ());
22
+ }
23
+ }
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >io.dangernoodle</groupId >
8
8
<artifactId >dangernoodle-io-build-pom</artifactId >
9
- <version >14</version >
9
+ <version >14.1.0-SNAPSHOT </version >
10
10
<relativePath />
11
11
</parent >
12
12
27
27
<properties >
28
28
<javadoc .project.artifactId>hello-dangernoodle</javadoc .project.artifactId>
29
29
<javadoc .site.scm>scm:git:git@github.com:dangernoodle-io/hello-dangernoodle.git</javadoc .site.scm>
30
+
31
+ <junit .version>5.11.0</junit .version>
30
32
</properties >
31
33
32
34
<scm >
41
43
<url >https://github.com/dangernoodle-io/hello-dangernoodle/issues</url >
42
44
</issueManagement >
43
45
46
+ <dependencyManagement >
47
+ <dependencies >
48
+ <dependency >
49
+ <groupId >org.junit</groupId >
50
+ <artifactId >junit-bom</artifactId >
51
+ <version >${junit.version} </version >
52
+ <type >pom</type >
53
+ <scope >import</scope >
54
+ </dependency >
55
+ </dependencies >
56
+ </dependencyManagement >
57
+
44
58
</project >
You can’t perform that action at this time.
0 commit comments