diff --git a/.github/workflows/java-test.yaml b/.github/workflows/java-test.yaml index 0d01861..2ae5bde 100644 --- a/.github/workflows/java-test.yaml +++ b/.github/workflows/java-test.yaml @@ -17,6 +17,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up JDK 17 uses: actions/setup-java@v4 diff --git a/src/test/java/com/example/helloworld/HelloWorldApplicationTests.java b/src/test/java/com/example/helloworld/HelloWorldApplicationTests.java index 35bba04..411dee3 100644 --- a/src/test/java/com/example/helloworld/HelloWorldApplicationTests.java +++ b/src/test/java/com/example/helloworld/HelloWorldApplicationTests.java @@ -7,7 +7,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; - @SpringBootTest class HelloWorldApplicationTests { @@ -20,4 +19,9 @@ void contextLoads() { assertNotNull(helloWorldController); } + @Test + void main() { + HelloWorldApplication.main(new String[] {}); + } + }