git.delta.rocks / unique-network / refs/commits / 9d577f5d3aef

difftreelog

test autogenerate js types

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

1 file changed

added.github/workflows/autogen-js-types.ymldiffbeforeafterboth
after · .github/workflows/autogen-js-types.yml
1name: yarn autogetn JS types23# 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 request13      - ready_for_review1415  # Allows you to run this workflow manually from the Actions tab16  workflow_dispatch:1718#Define Workflow variables19env:20  REPO_URL: ${{ github.server_url }}/${{ github.repository }}2122concurrency: 23  group: ${{ github.workflow }}-${{ github.head_ref }}24  cancel-in-progress: true2526# A workflow run is made up of one or more jobs that can run sequentially or in parallel27jobs:28  29  autogen_js_types:30    # The type of runner that the job will run on31    runs-on: [self-hosted-ci,medium]32    timeout-minutes: 13803334    name: ${{ matrix.network }}3536    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.3738    strategy:39      matrix:40        include:41          - network: "opal"42            features: "opal-runtime"43          - network: "quartz"44            features: "quartz-runtime"45          - network: "unique"46            features: "unique-runtime"4748    steps:49      - name: Clean Workspace50        uses: AutoModality/action-clean@v1.1.05152      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it53      - uses: actions/checkout@v354        with:55          ref: ${{ github.head_ref }}  #Checking out head commit5657      - name: Read .env file58        uses: xom9ikk/dotenv@v1.0.25960      - name: Generate ENV related extend file for docker-compose61        uses: cuchi/jinja2-action@v1.2.062        with:63          template: .docker/docker-compose.tmp-dev.j264          output_file: .docker/docker-compose.${{ matrix.network }}.yml65          variables: |66            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}67            FEATURE=${{ matrix.features }}68    6970      - name: Show build configuration71        run: cat .docker/docker-compose.${{ matrix.network }}.yml7273      - name: Build the stack74        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans7576      - uses: actions/setup-node@v377        with:78          node-version: 167980      - name: Run tests81        working-directory: tests82        run: |83          yarn polkadot-types84        env:85          RPC_URL: http://127.0.0.1:9933/8687      - name: Enumerate files after generation88        working-directory: tests89	run: ls -la9091      - name: Stop running containers92        if: always()                   # run this step always93        run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down