difftreelog
Clean up workflow. Add docker builder cleanup.
in: master
2 files changed
.docker/Dockerfile-parachain-node-onlydiffbeforeafterboth27RUN mkdir /unique_parachain27RUN mkdir /unique_parachain28WORKDIR /unique_parachain28WORKDIR /unique_parachain29293030# ===== BUILD current version ======31# ===== BUILD current version ======31FROM rust-builder as builder-unique-current32FROM rust-builder as builder-unique-current3233454646ARG PROFILE=release47ARG PROFILE=release47ARG FEATURE=48ARG FEATURE=48ARG BRANCH=49ARG REPO_URL=504951COPY . /unique_parachain50COPY . /unique_parachain52WORKDIR /unique_parachain51WORKDIR /unique_parachain.github/workflows/nodes-only-update.ymldiffbeforeafterboth142 node-version: 16142 node-version: 16143143144 - name: Build the stack144 - name: Build the stack145 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300145 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300146146147 # 🚀 POLKADOT LAUNCH COMPLETE 🚀147 # 🚀 POLKADOT LAUNCH COMPLETE 🚀148 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.148 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.191 shell: bash191 shell: bash192192193 - name: Run tests before Node Parachain upgrade193 - name: Run tests before Node Parachain upgrade194 working-directory: tests194 run: |195 run: |195 cd tests196 yarn install196 yarn install197 yarn add mochawesome197 yarn add mochawesome198 echo "Ready to start tests"198 echo "Ready to start tests"199 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}199 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}200 env:200 env:201 RPC_URL: http://127.0.0.1:9933/201 RPC_URL: http://127.0.0.1:9933/202202211 fail-on-error: 'false'211 fail-on-error: 'false'212212213 - name: Send SIGUSR1 to polkadotlaunch process213 - name: Send SIGUSR1 to polkadotlaunch process214 if: success()214 if: success() || failure()215 run: |215 run: |216 #Get PID of polkadot-launch216 #Get PID of polkadot-launch217 PID=$(docker exec node-parachain pidof 'polkadot-launch')217 PID=$(docker exec node-parachain pidof 'polkadot-launch')266 shell: bash266 shell: bash267267268 - name: Run tests after Node Parachain upgrade268 - name: Run tests after Node Parachain upgrade269 working-directory: tests269 run: |270 run: |270 cd tests271 yarn install271 yarn install272 yarn add mochawesome272 yarn add mochawesome273 echo "Ready to start tests"273 echo "Ready to start tests"274 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}274 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}275 env:275 env:276 RPC_URL: http://127.0.0.1:9933/276 RPC_URL: http://127.0.0.1:9933/277277288288289 - name: Stop running containers289 - name: Stop running containers290 if: always() # run this step always290 if: always() # run this step always291 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down291 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes292292293 #docker-compose rm -f294 - name: Remove Docker build artefacts293 - name: Remove builder cache295 if: always() # run this step always294 if: always() # run this step always296 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" rm -f295 run: |296 docker builder prune -f297 docker system prune -f298299 - name: Clean Workspace300 if: always()301 uses: AutoModality/action-clean@v1.1.0297302