Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
gradle-build:
name: Build project with Gradle
needs: check-changes
if: ${{ needs.check-changes.outputs.build-changes == 'true' }}
if: ${{ needs.check-changes.outputs.build-changes == 'true' || needs.check-changes.outputs.source-changes == 'true' }}
runs-on: ubuntu-latest
outputs:
build-artifacts: ${{ steps.upload-build-artifacts.outputs.artifact-id }}
Expand Down
3 changes: 3 additions & 0 deletions data-jdbc-schema-generation/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ out/

### VS Code ###
.vscode/

### Liquibase generated files ###
**/user.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package zin.rashidi.boot.jdbcscgm.book;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.data.jdbc.DataJdbcTest;
Expand All @@ -13,6 +14,8 @@
import java.io.IOException;
import java.util.Set;

import static org.assertj.core.api.Assertions.assertThat;

/**
* @author Rashidi Zin
*/
Expand All @@ -28,12 +31,10 @@ static void generateSchema(@Autowired RelationalMappingContext context) throws I
writer.writeChangeSet(new FileSystemResource("user.yaml"));
}

@Autowired
private BookRepository books;

@Test
void findAll() {
books.findAll();
@DisplayName("Given the user.yaml exists, when changelogExists, then return true")
void changelogExists() {
assertThat(new FileSystemResource("user.yaml").exists()).isTrue();
}

}
Loading