git.delta.rocks / unique-network / refs/commits / 631b82d7f34e

difftreelog

Bash script inside workflow

Alexander Aksenov2022-08-11parent: #acb5c04.patch.diff
in: master

1 file changed

modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
110110
111111
112 - name: Build the stack112 - name: Build the stack
113 run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --force-recreate113 run: docker-compose -f ".docker/docker-compose-forkless.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --force-recreate --timeout 300 --exit-code-from
114114
115 - name: Wait for 15m115 - name: Wait for 5m before starting tests docker logs for " RUNTIME UPGRADE TESTING " criteria
116 if: success()
116 run: sleep 600s117 run: sleep 300s
118
119 - name: Check if docker logs consist logs related to Runtime Upgrade testing.
120 if: success()
121 shell: bash
122 run: |
123 function do_docker_logs { DOCKER_LOGS=$(docker logs container node-parachain --details 2>&1)}
124 function is_started { if [[ ${DOCKER_LOGS} != *"RUNTIME UPGRADE TESTING"* ]];then return 0 fi return 1}
125 while ! is_started; do
126 echo "Waiting for "RUNTIME UPGRADE TESTING" in container logs"
127 sleep 15s
128 done
129 echo "Test completed."
130 exit 0
117131
118 - name: Collect Docker Logs132 - name: Collect Docker Logs
119 if: success() || failure()133 if: success() || failure()
120 uses: jwalton/gh-docker-logs@v2.2.0134 uses: jwalton/gh-docker-logs@v2.2.0
121 with:135 with:
122 dest: './fpu-logs.${{ matrix.features }}'136 dest: './forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}'
123 images: 'node-parachain' 137 images: 'node-parachain'
124138
125 - name: Tar logs139 - name: Tar logs
126 if: success() || failure()140 if: success() || failure()
127 run: tar cvzf ./fpu-logs.${{ matrix.features }}.tgz ./fpu-logs.${{ matrix.features }}141 run: tar cvzf ./forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}.tgz ./forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}
128142
129 - name: Upload logs to GitHub143 - name: Upload logs to GitHub
130 if: success() || failure()144 if: success() || failure()
131 uses: actions/upload-artifact@master145 uses: actions/upload-artifact@master
132 with:146 with:
133 name: fpu-logs.${{ matrix.features }}.tgz147 name: forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}.tgz
134 path: ./fpu-logs.${{ matrix.features }}.tgz148 path: ./forkless-parachain-upgrade-nodata-logs.${{ matrix.features }}.tgz
135149
136150
137# - name: Test Report151# - name: Test Report