git.delta.rocks / unique-network / refs/heads / master

difftreelog

source

.github/workflows/unit-test.yml1.9 KiBsourcehistory
1# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586738699/Unit+Tests2# Re-Usable Workflow for lanching Unit tests3name: unit-tests45# Controls when the action will run.6# Triger: only call from main workflow(re-usable workflows)7on:8  workflow_call:9  workflow_dispatch:1011# A workflow run is made up of one or more jobs that can run sequentially or in parallel12jobs:13  14  unit_tests:15    # The type of runner that the job will run on16    runs-on: [ self-hosted-ci,medium ]17    timeout-minutes: 13801819    name: ${{ github.base_ref }}2021    continue-on-error: true         #Do not stop testing of matrix runs failed.  As it decided during PR review - it required 50/50& Let's check it with false.2223    steps:2425      - name: Clean Workspace26        uses: AutoModality/action-clean@v1.1.02728      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it29      - uses: actions/checkout@v4.1.730        with:31          ref: ${{ github.head_ref }}  #Checking out head commit3233      - 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()                   # run this step always50        run: docker compose -f ".docker/docker-compose.unit.yml" down51        52      - name: Remove builder cache53        if: always()                   # run this step always54        run: |55          docker builder prune -f -a56          docker system prune -f57          docker image prune -f -a