difftreelog
Update unit-test_v2.yml
in: master
1 file changed
.github/workflows/unit-test_v2.ymldiffbeforeafterboth1name: unit tests23# Controls when the action will run.4on:5 # Triggers the workflow on push or pull request events but only for the master branch6 workflow_call:78# A workflow run is made up of one or more jobs that can run sequentially or in parallel9jobs:10 11 unit_tests:12 # The type of runner that the job will run on13 runs-on: [self-hosted-ci,medium]14 timeout-minutes: 13801516 name: ${{ github.base_ref }}1718 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.192021 steps:2223 - name: Clean Workspace24 uses: AutoModality/action-clean@v1.1.02526 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it27 - uses: actions/checkout@v328 with:29 ref: ${{ github.head_ref }} #Checking out head commit3031 - name: Read .env file32 uses: xom9ikk/dotenv@v1.0.23334 - 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() # run this step always51 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down1# Re-Usable Workflow for lanching Unit tests2name: unit tests34# Controls when the action will run.5# Triger: only call from main workflow(re-usable workflows)6on:7 workflow_call:89# A workflow run is made up of one or more jobs that can run sequentially or in parallel10jobs:11 12 unit_tests:13 # The type of runner that the job will run on14 runs-on: [self-hosted-ci,medium]15 timeout-minutes: 13801617 name: ${{ github.base_ref }}1819 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.202122 steps:2324 - name: Clean Workspace25 uses: AutoModality/action-clean@v1.1.02627 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it28 - uses: actions/checkout@v329 with:30 ref: ${{ github.head_ref }} #Checking out head commit3132 - 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() # run this step always52 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down53 54 - name: Remove builder cache55 if: always() # run this step always56 run: |57 docker builder prune -f -a58 docker system prune -f59 docker image prune -f -a