-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 1.03 KB
/
test.yml
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
name: Build And Test on All OSs
on: [ push, pull_request ]
jobs:
gradle:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java: [ 11, 17 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java }}
- uses: eskatos/gradle-command-action@v1
with:
arguments: check fatJar
- name: Publish Test Report
if: ${{ always() }}
uses: mikepenz/action-junit-report@v2
with:
report_paths: '**/build/test-results/test/TEST-*.xml'
- name: Build Rust Client
working-directory: ./jgrab-client
run: cargo build
- name: Smoke Test
shell: bash
run: |
export JGRAB_HOME="$(pwd)/.jgrab"
mkdir $JGRAB_HOME
cp ./jgrab-runner/build/libs/jgrab.jar $JGRAB_HOME/jgrab.jar
ls -al $JGRAB_HOME
./jgrab-client/target/debug/jgrab-client -e "2 + 2"