rusty-tracks 0.0.12

Rust client to connect to DataTracks.
Documentation
name: 🧪 DataTracks Connection Tests

on:
  push:
    branches:
      - main

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  run-tests:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout Current Repository
        uses: actions/checkout@v4


      - 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:
          url: "http://localhost:2666/status"
          expected-response-field: "status"

      - name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode
        run: cargo build --profile release
      - name: Run tests in release mode
        run: cargo test --profile release