-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.29 KB
/
test.yaml
File metadata and controls
58 lines (48 loc) · 1.29 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
53
54
55
56
57
58
name: 🧪 DataTracks Connection Tests
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-rust-and-java-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Current Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Checkout Rust Application Repository
uses: actions/checkout@v4
with:
submodules: 'true'
repository: 'data-tracks/DataTracks'
path: 'app'
token: ${{ secrets.TRACKVIEW }}
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run DataTracks
run: |
cd app
cargo run --package data-tracks --bin data-tracks &
- name: Wait for API Url Action
uses: Hardsix/action-wait-for-api@v2.0.2
with:
timeout: '300'
url: "http://localhost:2666/status"
expected-response-field: "status"
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Run Tests
run: |
gradle test