Refactor Code, Add CockroachDB Tester and Generator #51
Workflow file for this run
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: Test Code Generation | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test-code-generation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '23' | |
| distribution: 'temurin' | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Build project | |
| run: mvn -B compile --file pom.xml | |
| - name: Run Calcite tests | |
| run: | | |
| chmod +x scripts/test-codegen.sh | |
| ./scripts/test-codegen.sh | |
| - name: Upload generated code | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: generated-code | |
| path: | | |
| src/main/java/org/qed/Backends/Calcite/Generated/*.java |