12name: unit tests3456on:7 workflow_call:8910jobs:11 12 unit_tests:13 14 runs-on: [self-hosted-ci,medium]15 timeout-minutes: 13801617 name: ${{ github.base_ref }}1819 continue-on-error: true 202122 steps:2324 - name: Clean Workspace25 uses: AutoModality/action-clean@v1.1.02627 28 - uses: actions/checkout@v329 with:30 ref: ${{ github.head_ref }} 3132 - name: Read .env file33 uses: xom9ikk/dotenv@v1.0.23435 - name: Generate ENV related extend file for docker-compose36 uses: cuchi/jinja2-action@v1.2.037 with:38 template: .docker/docker-compose.tmp-unit.j239 output_file: .docker/docker-compose.unit.yml40 variables: |41 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}42 4344 - name: Show build configuration45 run: cat .docker/docker-compose.unit.yml4647 - name: Build the stack48 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-dev4950 - name: Stop running containers51 if: always() 52 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down53 54 - name: Remove builder cache55 if: always() 56 run: |57 docker builder prune -f -a58 docker system prune -f59 docker image prune -f -a