-
Notifications
You must be signed in to change notification settings - Fork 108
43 lines (36 loc) · 1.2 KB
/
test-java.yml
File metadata and controls
43 lines (36 loc) · 1.2 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
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-80e0a01ee5dc094fd8693d29338d2836852dff1d
options: --user=ubuntu
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-${{ 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
- 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: ""