diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 52a073b1..25621aac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,4 +51,4 @@ jobs: - name: Install pnpm run: npm install -g pnpm - name: Build with Maven - run: mvn -B formatter:validate verify --file pom.xml + run: mvn -B formatter:validate install --file pom.xml diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 1d70b502..14f79270 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -48,6 +48,14 @@ + + maven-surefire-plugin + + + ${settings.localRepository} + + + diff --git a/integration-tests/src/test/java/io/quarkiverse/quinoa/it/QuinoaCodestartIT.java b/integration-tests/src/test/java/io/quarkiverse/quinoa/it/QuinoaCodestartTest.java similarity index 79% rename from integration-tests/src/test/java/io/quarkiverse/quinoa/it/QuinoaCodestartIT.java rename to integration-tests/src/test/java/io/quarkiverse/quinoa/it/QuinoaCodestartTest.java index ad19e4da..59591f67 100644 --- a/integration-tests/src/test/java/io/quarkiverse/quinoa/it/QuinoaCodestartIT.java +++ b/integration-tests/src/test/java/io/quarkiverse/quinoa/it/QuinoaCodestartTest.java @@ -1,13 +1,14 @@ package io.quarkiverse.quinoa.it; import static io.quarkus.devtools.codestarts.quarkus.QuarkusCodestartCatalog.Language.JAVA; +import static io.quarkus.devtools.testing.SnapshotTesting.checkContains; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; import io.quarkus.devtools.testing.codestarts.QuarkusCodestartTest; -public class QuinoaCodestartIT { +public class QuinoaCodestartTest { @RegisterExtension public static QuarkusCodestartTest codestartTest = QuarkusCodestartTest.builder() @@ -20,6 +21,8 @@ void testContent() throws Throwable { codestartTest.assertThatGeneratedFile(JAVA, "src/main/webui/package.json") .exists(); codestartTest.assertThatGeneratedTreeMatchSnapshots(JAVA, "src/main/webui"); + codestartTest.assertThatGeneratedFile(JAVA, ".gitignore") + .satisfies(checkContains("node_modules/")); } @Test diff --git a/integration-tests/src/test/resources/__snapshots__/QuinoaCodestartIT/testContent/dir-tree.snapshot b/integration-tests/src/test/resources/__snapshots__/QuinoaCodestartTest/testContent/dir-tree.snapshot similarity index 84% rename from integration-tests/src/test/resources/__snapshots__/QuinoaCodestartIT/testContent/dir-tree.snapshot rename to integration-tests/src/test/resources/__snapshots__/QuinoaCodestartTest/testContent/dir-tree.snapshot index 51aaeb46..8c07a1b1 100644 --- a/integration-tests/src/test/resources/__snapshots__/QuinoaCodestartIT/testContent/dir-tree.snapshot +++ b/integration-tests/src/test/resources/__snapshots__/QuinoaCodestartTest/testContent/dir-tree.snapshot @@ -2,7 +2,7 @@ package-lock.json package.json public/ -public/quinoa.gif +public/quinoa.css public/quinoa.html src/ src/index.js diff --git a/pom.xml b/pom.xml index 39820db0..dee969d8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.quarkiverse quarkiverse-parent - 9 + 10 io.quarkiverse.quinoa quarkus-quinoa-parent diff --git a/runtime/src/main/codestarts/quarkus/quinoa-codestart/base/..gitignore b/runtime/src/main/codestarts/quarkus/quinoa-codestart/base/..gitignore new file mode 100644 index 00000000..9ef09545 --- /dev/null +++ b/runtime/src/main/codestarts/quarkus/quinoa-codestart/base/..gitignore @@ -0,0 +1,4 @@ +# Quinoa +node_modules/ +build/ +dist/ \ No newline at end of file