git.delta.rocks / unique-network / refs/commits / 025c29dfe165

difftreelog

test remove execution readyness check script

Alexander Aksenov2022-09-05parent: #2afc567.patch.diff
in: master

1 file changed

modified.github/workflows/dev-build-tests_v2.ymldiffbeforeafterboth
37 features: "unique-runtime"37 features: "unique-runtime"
3838
39 steps:39 steps:
40 - name: Skip if pull request is in Draft
41 # `if: github.event.pull_request.draft == true` should be kept here, at
42 # the step level, rather than at the job level. The latter is not
43 # recommended because when the PR is moved from "Draft" to "Ready to
44 # 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 for
46 # the workflow to start. This is also disclosed in:
47 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17
48 # That scenario would open an opportunity for the check to be bypassed:
49 # 1. Get your PR approved
50 # 2. Move it to Draft
51 # 3. Push whatever commits you want
52 # 4. Move it to "Ready for review"; now the workflow is passing (it was
53 # skipped) and "Check reviews" is also passing (it won't be updated
54 # until the workflow is finished)
55 if: github.event.pull_request.draft == true
56 run: exit 1
5740
58 - name: Clean Workspace41 - name: Clean Workspace
59 uses: AutoModality/action-clean@v1.1.042 uses: AutoModality/action-clean@v1.1.0
87 node-version: 1670 node-version: 16
8871
89 - name: Run tests72 - name: Run tests
90 run: |73 run: |
91 cd tests74 cd tests
92 yarn install75 yarn install
93 yarn add mochawesome76 yarn add mochawesome
94 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