File tree Expand file tree Collapse file tree 6 files changed +78
-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 +78
-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
11
build-main :
12
- uses : dangernoodle-io/.github/.github/workflows/maven-build.yml@jae/initial
13
12
secrets : inherit
13
+ uses : dangernoodle-io/.github/.github/workflows/maven.yml@main
14
+ with :
15
+ 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
- build-main :
8
- uses : dangernoodle-io/.github/.github/workflows/maven-release.yml@jae/initial
7
+ release-main :
9
8
secrets : inherit
9
+ uses : dangernoodle-io/.github/.github/workflows/maven.yml@main
10
+ with :
11
+ maven-goals : release:prepare release:perform
12
+ release : true
Original file line number Diff line number Diff line change 11
11
12
12
<artifactId >hello-dangernoodle-module-a</artifactId >
13
13
14
+ <build >
15
+ <plugins >
16
+ <plugin >
17
+ <groupId >org.jacoco</groupId >
18
+ <artifactId >jacoco-maven-plugin</artifactId >
19
+ </plugin >
20
+ <plugin >
21
+ <groupId >org.eluder.coveralls</groupId >
22
+ <artifactId >coveralls-maven-plugin</artifactId >
23
+ </plugin >
24
+ </plugins >
25
+ </build >
26
+
27
+ <dependencies >
28
+ <dependency >
29
+ <groupId >org.junit.jupiter</groupId >
30
+ <artifactId >junit-jupiter</artifactId >
31
+ <scope >test</scope >
32
+ </dependency >
33
+ </dependencies >
34
+
14
35
</project >
Original file line number Diff line number Diff line change 5
5
*/
6
6
public class HelloWorldModuleA
7
7
{
8
+ public boolean isFoo ()
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 .isFoo ());
22
+ }
23
+
24
+ }
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.1 </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
+
58
+
44
59
</project >
You can’t perform that action at this time.
0 commit comments