Skip to content

Commit

Permalink
Add .gitignore section in codestart (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy authored Jul 5, 2022
1 parent 2dfbabb commit f93b072
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<maven.repo.local>${settings.localRepository}</maven.repo.local>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
Expand Down
Original file line number Diff line number Diff line change
@@ -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()
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package-lock.json
package.json
public/
public/quinoa.gif
public/quinoa.css
public/quinoa.html
src/
src/index.js
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.quarkiverse</groupId>
<artifactId>quarkiverse-parent</artifactId>
<version>9</version>
<version>10</version>
</parent>
<groupId>io.quarkiverse.quinoa</groupId>
<artifactId>quarkus-quinoa-parent</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Quinoa
node_modules/
build/
dist/

0 comments on commit f93b072

Please sign in to comment.