123name: unit tests4567on:8 workflow_call:91011jobs:12 13 unit_tests:14 15 runs-on: [self-hosted-ci,medium]16 timeout-minutes: 13801718 name: ${{ github.base_ref }}1920 continue-on-error: true 212223 steps:2425 - name: Clean Workspace26 uses: AutoModality/action-clean@v1.1.02728 29 - uses: actions/checkout@v330 with:31 ref: ${{ github.head_ref }} 3233 - name: Read .env file34 uses: xom9ikk/dotenv@v23536 - name: Generate ENV related extend file for docker-compose37 uses: cuchi/jinja2-action@v1.2.038 with:39 template: .docker/docker-compose.tmp-unit.j240 output_file: .docker/docker-compose.unit.yml41 variables: |42 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}43 4445 - name: Show build configuration46 run: cat .docker/docker-compose.unit.yml4748 - name: Build the stack49 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-dev5051 - name: Stop running containers52 if: always() 53 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down54 55 - name: Remove builder cache56 if: always() 57 run: |58 docker builder prune -f -a59 docker system prune -f60 docker image prune -f -a