difftreelog
tests: add autogenerate JS types before start tests
in: master
2 files changed
.github/workflows/dev-build-tests_v2.ymldiffbeforeafterboth1name: yarn test dev23# Controls when the action will run.4on:5 # Triggers the workflow on push or pull request events but only for the master branch6 workflow_call:789#Define Workflow variables10env:11 REPO_URL: ${{ github.server_url }}/${{ github.repository }}1213#concurrency: 14# group: ${{ github.workflow }}-${{ github.head_ref }}15# cancel-in-progress: true1617# A workflow run is made up of one or more jobs that can run sequentially or in parallel18jobs:19 20 dev_build_int_tests:21 # The type of runner that the job will run on22 runs-on: [self-hosted-ci,medium]23 timeout-minutes: 13802425 name: ${{ matrix.network }}2627 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.2829 strategy:30 matrix:31 include:32 - network: "opal"33 features: "opal-runtime"34 - network: "quartz"35 features: "quartz-runtime"36 - network: "unique"37 features: "unique-runtime"3839 steps:4041 - name: Clean Workspace42 uses: AutoModality/action-clean@v1.1.04344 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it45 - uses: actions/checkout@v346 with:47 ref: ${{ github.head_ref }} #Checking out head commit4849 - name: Read .env file50 uses: xom9ikk/dotenv@v1.0.25152 - name: Generate ENV related extend file for docker-compose53 uses: cuchi/jinja2-action@v1.2.054 with:55 template: .docker/docker-compose.tmp-dev.j256 output_file: .docker/docker-compose.${{ matrix.network }}.yml57 variables: |58 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}59 FEATURE=${{ matrix.features }}60 6162 - name: Show build configuration63 run: cat .docker/docker-compose.${{ matrix.network }}.yml6465 - name: Build the stack66 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans6768 - uses: actions/setup-node@v369 with:70 node-version: 167172 - name: Run tests73 run: |74 cd tests75 yarn install76 yarn add mochawesome77 echo "Ready to start tests"78 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}79 env:80 RPC_URL: http://127.0.0.1:9933/8182 - name: Test Report83 uses: phoenix-actions/test-reporting@v884 id: test-report85 if: success() || failure() # run this step even if previous step failed86 with:87 name: int test results - ${{ matrix.network }} # Name of the check run which will be created88 path: tests/mochawesome-report/test-*.json # Path to test results89 reporter: mochawesome-json90 fail-on-error: 'false'9192 - name: Read output variables93 run: |94 echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"9596 - name: Stop running containers97 if: always() # run this step always98 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down1name: yarn test dev23# Controls when the action will run.4on:5 # Triggers the workflow on push or pull request events but only for the master branch6 workflow_call:789#Define Workflow variables10env:11 REPO_URL: ${{ github.server_url }}/${{ github.repository }}1213#concurrency: 14# group: ${{ github.workflow }}-${{ github.head_ref }}15# cancel-in-progress: true1617# A workflow run is made up of one or more jobs that can run sequentially or in parallel18jobs:19 20 dev_build_int_tests:21 # The type of runner that the job will run on22 runs-on: [self-hosted-ci,medium]23 timeout-minutes: 13802425 name: ${{ matrix.network }}2627 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.2829 strategy:30 matrix:31 include:32 - network: "opal"33 features: "opal-runtime"34 - network: "quartz"35 features: "quartz-runtime"36 - network: "unique"37 features: "unique-runtime"3839 steps:4041 - name: Clean Workspace42 uses: AutoModality/action-clean@v1.1.04344 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it45 - uses: actions/checkout@v346 with:47 ref: ${{ github.head_ref }} #Checking out head commit4849 - name: Read .env file50 uses: xom9ikk/dotenv@v1.0.25152 - name: Generate ENV related extend file for docker-compose53 uses: cuchi/jinja2-action@v1.2.054 with:55 template: .docker/docker-compose.tmp-dev.j256 output_file: .docker/docker-compose.${{ matrix.network }}.yml57 variables: |58 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}59 FEATURE=${{ matrix.features }}60 6162 - name: Show build configuration63 run: cat .docker/docker-compose.${{ matrix.network }}.yml6465 - name: Build the stack66 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans6768 - uses: actions/setup-node@v369 with:70 node-version: 167172 - name: Run tests73 working-directory: tests74 run: |75 yarn install76 yarn add mochawesome77 node scripts/readyness.js78 echo "Ready to start tests"79 yarn polkadot-types80 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}81 env:82 RPC_URL: http://127.0.0.1:9933/8384 - name: Test Report85 uses: phoenix-actions/test-reporting@v886 id: test-report87 if: success() || failure() # run this step even if previous step failed88 with:89 name: int test results - ${{ matrix.network }} # Name of the check run which will be created90 path: tests/mochawesome-report/test-*.json # Path to test results91 reporter: mochawesome-json92 fail-on-error: 'false'9394 - name: Read output variables95 run: |96 echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"9798 - name: Stop running containers99 if: always() # run this step always100 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down.github/workflows/node-only-update_v2.ymldiffbeforeafterboth--- a/.github/workflows/node-only-update_v2.yml
+++ b/.github/workflows/node-only-update_v2.yml
@@ -161,7 +161,9 @@
run: |
yarn install
yarn add mochawesome
+ node scripts/readyness.js
echo "Ready to start tests"
+ yarn polkadot-types
NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
env:
RPC_URL: http://127.0.0.1:9933/
@@ -236,7 +238,9 @@
run: |
yarn install
yarn add mochawesome
+ node scripts/readyness.js
echo "Ready to start tests"
+ yarn polkadot-types
NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}
env:
RPC_URL: http://127.0.0.1:9933/