123name: unit-tests4567on:8 workflow_call:9 workflow_dispatch:101112jobs:13 14 unit_tests:15 16 runs-on: [ self-hosted-ci,medium ]17 timeout-minutes: 13801819 name: ${{ github.base_ref }}2021 continue-on-error: true 2223 steps:2425 - name: Clean Workspace26 uses: AutoModality/action-clean@v1.1.02728 29 - uses: actions/checkout@v4.1.730 with:31 ref: ${{ github.head_ref }} 3233 - name: Read .env file34 uses: xom9ikk/dotenv@v2.3.03536 - 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.yml4142 - name: Show build configuration43 run: cat .docker/docker-compose.unit.yml4445 - name: Build the stack46 run: docker compose -f ".docker/docker-compose.unit.yml" up --build --force-recreate --timeout 300 --remove-orphans --exit-code-from node-dev4748 - name: Stop running containers49 if: always() 50 run: docker compose -f ".docker/docker-compose.unit.yml" down51 52 - name: Remove builder cache53 if: always() 54 run: |55 docker builder prune -f -a56 docker system prune -f57 docker image prune -f -a