git.delta.rocks / unique-network / refs/commits / 21801bf941c9

difftreelog

Run tests if failure and use GITHUB_TOKEN

Max Andreev2022-11-10parent: #30df2e1.patch.diff
in: master
(cherry picked from commit 4470b17015b39e8542b4f6f2165354555da19887)

1 file changed

modified.github/workflows/node-only-update.ymldiffbeforeafterboth
76 with:76 with:
77 template: .docker/docker-compose.tmp-node.j277 template: .docker/docker-compose.tmp-node.j2
78 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml78 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml
79 variables: |79 variables: |
80 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git80 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
81 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}81 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
82 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}82 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
83 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 83 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
84 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}84 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
85 MAINNET_TAG=${{ matrix.mainnet_tag }}85 MAINNET_TAG=${{ matrix.mainnet_tag }}
86 MAINNET_BRANCH=${{ matrix.mainnet_branch }}86 MAINNET_BRANCH=${{ matrix.mainnet_branch }}
87 NETWORK=${{ matrix.network }}87 NETWORK=${{ matrix.network }}
88 BRANCH=${{ github.head_ref }}88 BRANCH=${{ github.head_ref }}
8989
90 - name: Show build configuration90 - name: Show build configuration
91 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml91 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml
181 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-before-*.json # Path to test results181 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-before-*.json # Path to test results
182 reporter: mochawesome-json182 reporter: mochawesome-json
183 fail-on-error: 'false'183 fail-on-error: 'false'
184 token: ${{ secrets.GITHUB_TOKEN }}
184185
185 # TODO uncomment thease steps after the merge186 # TODO uncomment thease steps after the merge
186 #- name: Run Parallel tests before Node Parachain upgrade187 #- name: Run Parallel tests before Node Parachain upgrade
293 294
294 ## TODO: Remove next two blocks before switch to Parrallel & Sequental tests. Uncoment commented blocks.295 ## TODO: Remove next two blocks before switch to Parrallel & Sequental tests. Uncoment commented blocks.
295 - name: Run tests after Node Parachain upgrade296 - name: Run tests after Node Parachain upgrade
297 if: success() || failure() # run this step even if previous step failed
296 working-directory: ${{ matrix.mainnet_branch }}/tests298 working-directory: ${{ matrix.mainnet_branch }}/tests
297 run: |299 run: |
298 yarn install300 yarn install
313 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results315 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results
314 reporter: mochawesome-json316 reporter: mochawesome-json
315 fail-on-error: 'false'317 fail-on-error: 'false'
318 token: ${{ secrets.GITHUB_TOKEN }}
316319
317 # TODO uncomment thease steps after the merge320 # TODO uncomment thease steps after the merge
318 #- name: Run Parallel tests after Node Parachain upgrade321 #- name: Run Parallel tests after Node Parachain upgrade