difftreelog
test remove execution readyness check script
in: master
1 file changed
.github/workflows/dev-build-tests_v2.ymldiffbeforeafterboth37 features: "unique-runtime"37 features: "unique-runtime"383839 steps:39 steps:40 - name: Skip if pull request is in Draft41 # `if: github.event.pull_request.draft == true` should be kept here, at42 # the step level, rather than at the job level. The latter is not43 # recommended because when the PR is moved from "Draft" to "Ready to44 # review" the workflow will immediately be passing (since it was skipped),45 # even though it hasn't actually ran, since it takes a few seconds for46 # the workflow to start. This is also disclosed in:47 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1748 # That scenario would open an opportunity for the check to be bypassed:49 # 1. Get your PR approved50 # 2. Move it to Draft51 # 3. Push whatever commits you want52 # 4. Move it to "Ready for review"; now the workflow is passing (it was53 # skipped) and "Check reviews" is also passing (it won't be updated54 # until the workflow is finished)55 if: github.event.pull_request.draft == true56 run: exit 1574058 - name: Clean Workspace41 - name: Clean Workspace59 uses: AutoModality/action-clean@v1.1.042 uses: AutoModality/action-clean@v1.1.087 node-version: 1670 node-version: 16887189 - name: Run tests72 - name: Run tests90 run: |73 run: |91 cd tests74 cd tests92 yarn install75 yarn install93 yarn add mochawesome76 yarn add mochawesome94 echo "Ready to start tests"77 echo "Ready to start tests"95 node scripts/readyness.js78 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}96 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}97 env:79 env:98 RPC_URL: http://127.0.0.1:9933/80 RPC_URL: http://127.0.0.1:9933/9981