Fix refactored class #612
This file contains hidden or 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: Build with Dependencies | |
| on: | |
| workflow_dispatch: | |
| push: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| jobs: | |
| build: | |
| name: Build with Dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| # SETUP BUILD ENVIRONMENT | |
| - id: prepare-maven-build | |
| name: Prepare Maven build | |
| uses: sualeh/prepare-maven-build@v1.7.2 | |
| with: | |
| java-version: 17 | |
| - id: install-graphviz | |
| name: Install Graphviz | |
| uses: sualeh/install-graphviz@v1.0.3 | |
| # BUILD DEPENDENCIES | |
| - id: build-schemacrawler-core | |
| name: Build SchemaCrawler-Core | |
| uses: sualeh/build-maven-dependency@v1.0.8 | |
| with: | |
| repository: schemacrawler/SchemaCrawler-Core | |
| artifact: us.fatehi:schemacrawler:17.11.4 | |
| # BUILD AND TEST | |
| - id: build-test | |
| name: Build all modules and run tests | |
| shell: bash | |
| run: | | |
| # Build | |
| mvn \ | |
| --no-transfer-progress \ | |
| --batch-mode \ | |
| -Dreactor.printOrder \ | |
| clean verify | |
| - id: gather-expected-results | |
| name: Gather expected results for failed tests | |
| if: always() | |
| shell: bash | |
| run: | | |
| # Gather expected results | |
| echo "Gather expected results" | |
| # DEBUG | |
| echo "Current working directory:" | |
| pwd | |
| echo "Show expected results directories:" | |
| find . -type d -name "unit_tests_results_output" -exec echo {} \; | |
| # Save expected results files | |
| echo "Zip expected results:" | |
| .github/scripts/unit-tests-results-output.sh $(realpath .) | |
| - id: upload-unit-tests-results-output | |
| name: Upload expected results files | |
| uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: expected-results | |
| path: ./unit_tests_results_output.zip | |
| retention-days: 5 |