Skip to content

Commit

Permalink
Reactivates test database creation via Maven plugin for local test ru…
Browse files Browse the repository at this point in the history
…ns. Adds skip Parameter for the integrated test DB for Github Actions pipeline.
  • Loading branch information
derkaiserreich committed Aug 29, 2022
1 parent ead4980 commit b4c9fab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
- name: Compile and run Tests
run: >-
echo $ASSIGNED_PORT_${{ matrix.variableName }}_${{ github.run_id }}
mvn clean install -DskipTests -DskipDist -DskipDocker -DskipDeb &&
mvn clean install -DskipTests -DskipDist -DskipDocker -DskipDeb -DskipDockerTestDB &&
cd ${{ matrix.module }} &&
mvn clean install -Denv.testDatabaseConnection="bolt://localhost:${ASSIGNED_PORT_${{ matrix.variableName }}_${{ github.run_id }}}"
mvn clean install -DskipDockerTestDB -Denv.testDatabaseConnection="bolt://localhost:${ASSIGNED_PORT_${{ matrix.variableName }}_${{ github.run_id }}}"
- name: Stop Test Database
if: always()
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
components: 'js,python'
github-token: ${{ secrets.GITHUB_TOKEN }}

- run: mvn -U clean install -Pwith-sources -DskipTests
- run: mvn -U clean install -Pwith-sources -DskipTests -DskipDockerTestDB
- name: Upload binaries
run: >-
scp -v structr-binaries/target/structr-*.deb structr.com:/files/repositories/upload > /dev/null 2>&1 &&
Expand Down
8 changes: 4 additions & 4 deletions structr-test-configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</execution>
</executions>
</plugin>
<!--plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.36.0</version>
Expand Down Expand Up @@ -127,7 +127,7 @@
</run>
</image>
</images>
<skip>${skipTests}</skip>
<skip>${skipDockerTestDB}</skip>
</configuration>
</execution>
<execution>
Expand All @@ -137,11 +137,11 @@
<goal>stop</goal>
</goals>
<configuration>
<skip>${skipTests}</skip>
<skip>${skipDockerTestDB}</skip>
</configuration>
</execution>
</executions>
</plugin-->
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit b4c9fab

Please sign in to comment.