difftreelog
Node-only update: run tests in parallel
in: master
1 file changed
.github/workflows/node-only-update.ymldiffbeforeafterboth160 ref: ${{ matrix.mainnet_branch }} #Checking out head commit160 ref: ${{ matrix.mainnet_branch }} #Checking out head commit161 path: ${{ matrix.mainnet_branch }}161 path: ${{ matrix.mainnet_branch }}162162163 - name: Run tests before Node Parachain upgrade163 - name: Run Parallel tests before Node Parachain upgrade164 working-directory: ${{ matrix.mainnet_branch }}/tests164 working-directory: ${{ matrix.mainnet_branch }}/tests165 if: success() || failure()165 run: |166 run: |166 yarn install167 yarn install167 yarn add mochawesome168 yarn add mochawesome168 node scripts/readyness.js169 node scripts/readyness.js169 echo "Ready to start tests"170 echo "Ready to start tests"170 yarn polkadot-types171 yarn polkadot-types171 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-before-${NOW}172 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}172 env:173 env:173 RPC_URL: http://127.0.0.1:9933/174 RPC_URL: http://127.0.0.1:9933/175176 # - name: Upload Parallel Test Report Before Node upgrade177 # uses: phoenix-actions/test-reporting@v8178 # id: test-parallel-report-before179 # if: success() || failure() # run this step even if previous step failed180 # with:181 # name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created182 # path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-parallel-*.json # Path to test results183 # reporter: mochawesome-json184 # fail-on-error: 'false'174185175 - name: Upload Test Report Before Node upgrade186 - name: Run Sequential tests before Node Parachain upgrade176 uses: phoenix-actions/test-reporting@v8177 id: test-report-before178 if: success() || failure() # run this step even if previous step failed187 if: success() || failure()179 with:180 name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created181 path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-before-*.json # Path to test results188 working-directory: ${{ matrix.mainnet_branch }}/tests182 reporter: mochawesome-json189 run: NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}183 fail-on-error: 'false'190 env:184 token: ${{ secrets.GITHUB_TOKEN }}191 RPC_URL: http://127.0.0.1:9933/185186 # TODO uncomment thease steps after the merge187 #- name: Run Parallel tests before Node Parachain upgrade188 # working-directory: ${{ matrix.mainnet_branch }}/tests189 # run: |190 # yarn install191 # yarn add mochawesome192 # echo "Ready to start tests"193 # yarn polkadot-types194 # NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}195 # env:196 # RPC_URL: http://127.0.0.1:9933/197198 #- name: Upload Parallel Test Report Before Node upgrade199 # uses: phoenix-actions/test-reporting@v8200 # id: test-parallel-report-before201 # if: success() || failure() # run this step even if previous step failed202 # with:203 # name: Tests before node upgrade ${{ matrix.network }} # Name of the check run which will be created204 # path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-parallel-*.json # Path to test results205 # reporter: mochawesome-json206 # fail-on-error: 'false'207208 # - name: Run Sequential tests before Node Parachain upgrade209 # if: success() || failure()210 # working-directory: ${{ matrix.mainnet_branch }}/tests211 # run: NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}212 # env:213 # RPC_URL: http://127.0.0.1:9933/214192215 # - name: Upload Sequential Test Report Before Node upgrade193 # - name: Upload Sequential Test Report Before Node upgrade216 # uses: phoenix-actions/test-reporting@v8194 # uses: phoenix-actions/test-reporting@v8305 exit 0283 exit 0306 shell: bash284 shell: bash307285308 ## TODO: Remove next two blocks before switch to Parrallel & Sequental tests. Uncoment commented blocks.286 - name: Run Parallel tests after Node Parachain upgrade287 working-directory: ${{ matrix.mainnet_branch }}/tests288 if: success() || failure() # run this step even if previous step failed289 run: |290 yarn install291 yarn add mochawesome292 node scripts/readyness.js293 echo "Ready to start tests"294 yarn polkadot-types295 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}296 env:297 RPC_URL: http://127.0.0.1:9933/298299 #- name: Test Report Parallel After Node upgrade300 # uses: phoenix-actions/test-reporting@v8301 # id: test-report-parallel-after302 # if: success() || failure() # run this step even if previous step failed303 # with:304 # name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created305 # path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-parallel-*.json # Path to test results306 # reporter: mochawesome-json307 # fail-on-error: 'false'308309 - name: Run tests after Node Parachain upgrade309 - name: Run Sequential tests after Node Parachain upgrade310 if: success() || failure() # run this step even if previous step failed310 if: success() || failure()311 working-directory: ${{ matrix.mainnet_branch }}/tests311 working-directory: ${{ matrix.mainnet_branch }}/tests312 run: |312 run: NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}313 yarn install314 yarn add mochawesome315 node scripts/readyness.js316 echo "Ready to start tests"317 yarn polkadot-types318 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-after-${NOW}319 env:313 env:320 RPC_URL: http://127.0.0.1:9933/314 RPC_URL: http://127.0.0.1:9933/321322 # - name: Test Report After Node upgrade323 # uses: phoenix-actions/test-reporting@v8324 # id: test-report-after325 # if: success() || failure() # run this step even if previous step failed326 # with:327 # name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created328 # path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-after-*.json # Path to test results329 # reporter: mochawesome-json330 # fail-on-error: 'false'331 # token: ${{ secrets.GITHUB_TOKEN }}332333 # TODO uncomment thease steps after the merge334 #- name: Run Parallel tests after Node Parachain upgrade335 # working-directory: ${{ matrix.mainnet_branch }}/tests336 # run: |337 # yarn install338 # yarn add mochawesome339 # node scripts/readyness.js340 # echo "Ready to start tests"341 # yarn polkadot-types342 # NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}343 # env:344 # RPC_URL: http://127.0.0.1:9933/345346 #- name: Test Report Parallel After Node upgrade347 # uses: phoenix-actions/test-reporting@v8348 # id: test-report-parallel-after349 # if: success() || failure() # run this step even if previous step failed350 # with:351 # name: Tests after node upgrade ${{ matrix.network }} # Name of the check run which will be created352 # path: ${{ matrix.mainnet_branch }}/tests/mochawesome-report/test-parallel-*.json # Path to test results353 # reporter: mochawesome-json354 # fail-on-error: 'false'355356 #- name: Run Sequential tests after Node Parachain upgrade357 # if: success() || failure()358 # working-directory: ${{ matrix.mainnet_branch }}/tests359 # run: NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}360 # env:361 # RPC_URL: http://127.0.0.1:9933/362315363 #- name: Upload Sequential Test Report After Node upgrade316 #- name: Upload Sequential Test Report After Node upgrade364 # uses: phoenix-actions/test-reporting@v8317 # uses: phoenix-actions/test-reporting@v8