-
Notifications
You must be signed in to change notification settings - Fork 110
52 lines (44 loc) · 1.52 KB
/
test-java.yml
File metadata and controls
52 lines (44 loc) · 1.52 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
46
47
48
49
50
51
52
name: Test Java Sources
on:
workflow_call:
jobs:
java-tests:
name: Execute Java Tests
strategy:
matrix:
include:
- runner: [self-hosted, skylake40]
- runner: [self-hosted, alteram128]
runs-on: ${{ matrix.runner }}
container:
image: ghcr.io/feldera/feldera-dev:sha-cfae3f2af7e7676dde51af39ed76332f67d91b6a
options: --user=ubuntu
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- uses: actions/cache@v4
with:
path: |
/home/ubuntu/.gradle
./sql-to-dbsp-compiler/calcite
key: sql2dbsp-java-cache2-${{ runner.os }}-${{ hashFiles('sql-to-dbsp-compiler/calcite_version.env') }}
restore-keys: |
sql2dbsp-java-cache2-${{ runner.os }}-
# TODO: Avoid doing this twice and ideally download & reuse the JAR from build-java.yml workflow
- name: Run build.sh
run: ./build.sh
working-directory: ./sql-to-dbsp-compiler
if: ${{ vars.CI_DRY_RUN != 'true' }}
env:
CALCITE_BUILD_DIR: ./calcite
GRADLE_HOME: /home/ubuntu/.gradle
- name: Stop gradle daemon
run: gradle --stop
- name: Run mvn test
run: mvn test --no-transfer-progress -q -B -pl SQL-compiler -Dsurefire.failIfNoSpecifiedTests=false
working-directory: ./sql-to-dbsp-compiler
env:
RUSTFLAGS: ""
if: ${{ vars.CI_DRY_RUN != 'true' }}