git.delta.rocks / unique-network / refs/commits / 2a07e943177a

difftreelog

workflow rename. runs_on update

Alexander Aksenov2022-08-17parent: #d75b746.patch.diff
in: master

4 files changed

modified.github/workflows/build-test-master.ymldiffbeforeafterboth
--- a/.github/workflows/build-test-master.yml
+++ b/.github/workflows/build-test-master.yml
@@ -1,4 +1,4 @@
-name: MASTER - Build & Test
+name: yarn test para
 
 # Controls when the action will run.
 on:
@@ -23,10 +23,10 @@
 
   master-build-and-test:
     # The type of runner that the job will run on
-    runs-on: self-hosted-ci
+    runs-on: [self-hosted-ci,large]
+    timeout-minutes: 1380
 
-
-    name: ${{ matrix.network }} - Build and Test
+    name: ${{ matrix.network }}
 
     continue-on-error: true         #Do not stop testing of matrix runs failed.
 
modified.github/workflows/fork-update-withdata.ymldiffbeforeafterboth
--- a/.github/workflows/fork-update-withdata.yml
+++ b/.github/workflows/fork-update-withdata.yml
@@ -1,4 +1,4 @@
-name: Fork Parachain update with data
+name: Upgrade replica
 
 # Controls when the action will run.
 on:
@@ -23,9 +23,10 @@
 
   fork-update-withdata:
     # The type of runner that the job will run on
-    runs-on: self-hosted-ci
+    runs-on: [self-hosted-ci,large]
+    timeout-minutes: 1380
 
-    name: ${{ matrix.network }} Fork Parachain with data
+    name: ${{ matrix.network }}
 
     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.
 
modified.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth
--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -1,4 +1,4 @@
-name: Forkless Parachain update with no data
+name: Upgrade nodata
 
 # Controls when the action will run.
 on:
@@ -55,9 +55,10 @@
   forkless-update-nodata:
     needs: prepare-execution-marix
     # The type of runner that the job will run on
-    runs-on: self-hosted-ci
+    runs-on: [self-hosted-ci,medium]
+    timeout-minutes: 1380
 
-    name: ${{ matrix.network }} - Forkless Parachain Upgrade NO data
+    name: ${{ matrix.network }}
 
     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.
 
modified.github/workflows/node_build_test.ymldiffbeforeafterboth
after · .github/workflows/node_build_test.yml
1name: 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  pull_request:7    branches:8      - develop9    types:10      - opened11      - reopened12      - synchronize   #commit(s) pushed to the pull request1314  # Allows you to run this workflow manually from the Actions tab15  workflow_dispatch:1617#Define Workflow variables18env:19  REPO_URL: ${{ github.server_url }}/${{ github.repository }}2021# A workflow run is made up of one or more jobs that can run sequentially or in parallel22jobs:23  dev_build_test:24    # The type of runner that the job will run on25    runs-on: [self-hosted-ci,medium]26    timeout-minutes: 13802728    name: ${{ matrix.network }}2930    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.3132    strategy:33      matrix:34        include:35          - network: "Opal"36            features: "opal-runtime"37          - network: "Quartz"38            features: "quartz-runtime"39          - network: "Unique"40            features: "unique-runtime"4142    steps:43      - name: Skip if pull request is in Draft44        # `if: github.event.pull_request.draft == true` should be kept here, at45        # the step level, rather than at the job level. The latter is not46        # recommended because when the PR is moved from "Draft" to "Ready to47        # review" the workflow will immediately be passing (since it was skipped),48        # even though it hasn't actually ran, since it takes a few seconds for49        # the workflow to start. This is also disclosed in:50        # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1751        # That scenario would open an opportunity for the check to be bypassed:52        # 1. Get your PR approved53        # 2. Move it to Draft54        # 3. Push whatever commits you want55        # 4. Move it to "Ready for review"; now the workflow is passing (it was56        #    skipped) and "Check reviews" is also passing (it won't be updated57        #    until the workflow is finished)58        if: github.event.pull_request.draft == true59        run: exit 16061      - name: Clean Workspace62        uses: AutoModality/action-clean@v1.1.06364      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it65      - uses: actions/checkout@v366        with:67          ref: ${{ github.head_ref }}  #Checking out head commit6869      - name: Read .env file70        uses: xom9ikk/dotenv@v1.0.27172      - name: Generate ENV related extend file for docker-compose73        uses: cuchi/jinja2-action@v1.2.074        with:75          template: .docker/docker-compose.tmp.j276          output_file: .docker/docker-compose.${{ matrix.network }}.yml77          variables: |78            REPO_URL=${{ github.server_url }}/${{ github.repository }}.git79            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}80            POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}81            FEATURE=${{ matrix.features }}82            BRANCH=${{ github.head_ref }}8384      - name: Show build configuration85        run: cat .docker/docker-compose.${{ matrix.network }}.yml8687      - name: Build the stack88        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build8990      - uses: actions/setup-node@v391        with:92          node-version: 169394      - name: Run tests95        run: |96          cd tests97          yarn install98          yarn add mochawesome99          echo "Ready to start tests"100          node scripts/readyness.js101          NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}102        env:103          RPC_URL: http://127.0.0.1:9933/104105      - name: Test Report106        uses: phoenix-actions/test-reporting@v8107        id: test-report108        if: success() || failure()    # run this step even if previous step failed109        with:110          name: Tests ${{ matrix.network }}            # Name of the check run which will be created111          path: tests/mochawesome-report/test-*.json    # Path to test results112          reporter: mochawesome-json113          fail-on-error: 'false'114115      - name: Read output variables116        run: |117          echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"118119      - name: Stop running containers120        if: always()                   # run this step always121        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down