1name: unit tests234on:5 6 workflow_call:789jobs:10 11 unit_tests:12 13 runs-on: [self-hosted-ci,medium]14 timeout-minutes: 13801516 name: ${{ github.base_ref }}1718 continue-on-error: true 192021 steps:2223 - name: Clean Workspace24 uses: AutoModality/action-clean@v1.1.02526 27 - uses: actions/checkout@v328 with:29 ref: ${{ github.head_ref }} 3031 - name: Read .env file32 uses: xom9ikk/dotenv@v23334 - name: Generate ENV related extend file for docker-compose35 uses: cuchi/jinja2-action@v1.2.036 with:37 template: .docker/docker-compose.tmp-unit.j238 output_file: .docker/docker-compose.unit.yml39 variables: |40 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}41 4243 - name: Show build configuration44 run: cat .docker/docker-compose.unit.yml4546 - name: Build the stack47 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" up --build --force-recreate --timeout 300 --remove-orphans --exit-code-from node-dev4849 - name: Stop running containers50 if: always() 51 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down