git.delta.rocks / unique-network / refs/commits / 174392d0d0f6

difftreelog

disable checkout to an old branch for old tests

Alexander Aksenov2022-10-04parent: #d8f70cf.patch.diff
in: master

1 file changed

modified.github/workflows/node-only-update_v2.ymldiffbeforeafterboth
156 exit 0156 exit 0
157 shell: bash157 shell: bash
158
159 - name: Checkout at '${{ matrix.mainnet_branch }}' branch
160 uses: actions/checkout@master
161 with:
162 ref: ${{ matrix.mainnet_branch }} #Checking out head commit
163 path: ${{ matrix.mainnet_branch }}
164
165158
166 - name: Run tests before Node Parachain upgrade159 - name: Run tests before Node Parachain upgrade
167 working-directory: ${{ matrix.mainnet_branch }}/tests160 working-directory: tests
168 run: |161 run: |
169 yarn install162 yarn install
170 yarn add mochawesome163 yarn add mochawesome
171 echo "Ready to start tests"164 echo "Ready to start tests"
172 yarn polkadot-types165 yarn polkadot-types
173 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}166 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-before-${NOW}
174 env:167 env:
175 RPC_URL: http://127.0.0.1:9933/168 RPC_URL: http://127.0.0.1:9933/
176169
180 if: success() || failure() # run this step even if previous step failed173 if: success() || failure() # run this step even if previous step failed
181 with:174 with:
182 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created175 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created
183 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-*.json # Path to test results176 path: tests/mochawesome-report/test-before-*.json # Path to test results
184 reporter: mochawesome-json177 reporter: mochawesome-json
185 fail-on-error: 'false'178 fail-on-error: 'false'
186179
241234
242 - name: Run tests after Node Parachain upgrade235 - name: Run tests after Node Parachain upgrade
243 working-directory: tests236 working-directory: tests
244 run: |237 run: |
245 yarn install238 yarn install
246 yarn add mochawesome239 yarn add mochawesome
247 node scripts/readyness.js240 node scripts/readyness.js
248 echo "Ready to start tests"241 echo "Ready to start tests"
249 yarn polkadot-types242 yarn polkadot-types
250 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}243 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}
251 env:244 env:
252 RPC_URL: http://127.0.0.1:9933/245 RPC_URL: http://127.0.0.1:9933/
253246
257 if: success() || failure() # run this step even if previous step failed250 if: success() || failure() # run this step even if previous step failed
258 with:251 with:
259 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created252 name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created
260 path: tests/mochawesome-report/test-*.json # Path to test results253 path: tests/mochawesome-report/test-after-*.json # Path to test results
261 reporter: mochawesome-json254 reporter: mochawesome-json
262 fail-on-error: 'false'255 fail-on-error: 'false'
263256