-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.01 KB
/
Copy pathcodegen-test.yml
File metadata and controls
45 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test Code Generation
on:
push:
pull_request:
jobs:
test-code-generation:
runs-on: ubuntu-latest
defaults:
run:
working-directory: java
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '25'
distribution: 'temurin'
- name: Cache Maven dependencies
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('java/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build project
run: ./mvnw -B compile -q
- 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: |
java/src/main/java/org/qed/Backends/Calcite/Generated/*.java