command: added extra validation checks (#8) #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Gradle on PRs | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Build and test Plugin | |
run: ./gradlew build | |
- name: Build and test Sample Project | |
run: | | |
cd examples/hibernate_standalone/ | |
./gradlew build | |
- name: Test default schema task - includeBuild | |
run: | | |
cd examples/hibernate_standalone/ | |
./gradlew -q schema > schema_output | |
diff schema_output src/test/expected_default_schema | |
- name: Integration tests with local plugin repo | |
run: | | |
./gradlew publishAllPublicationsToLocalPluginRepositoryRepository | |
cd examples/with_local_plugin_repository | |
./gradlew -q schema | tee schema_output | |
diff schema_output src/test/expected_default_schema | |
./gradlew integrationTests |