git.delta.rocks / unique-network / refs/commits / 1719fd0eda15

difftreelog

add polkadot-types workflow

Unique2022-12-21parent: #ef583f8.patch.diff
in: master

1 file changed

added.github/workflows/polkadot-types.ymldiffbeforeafterboth
after · .github/workflows/polkadot-types.yml
1# Integration test in --dev mode2# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586411104/Integration+tests3name: Polkadot types45# Triger: only call from main workflow(re-usable workflows)6on:7  workflow_call:8  # Allows you to run this workflow manually from the Actions tab9  workflow_dispatch:101112# A workflow run is made up of one or more jobs that can run sequentially or in parallel13jobs:14  15  polkadot_generate_types:16    # The type of runner that the job will run on17    runs-on: [self-hosted-ci,medium]18    timeout-minutes: 13801920    name: ${{ matrix.network }}2122    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.2324    strategy:25      matrix:26        include:27          - network: sapphire28            usage: "--sapphire"29          - network: "opal"30            usage: ""31          - network: "quartz"32            usage: ""33          - network: "unique"34            usage: ""3536    steps:3738      - name: Clean Workspace39        uses: AutoModality/action-clean@v1.1.04041      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it42      - uses: actions/checkout@v343        with:44          ref: ${{ github.head_ref }}  #Checking out head commit4546      - name: Read .env file47        uses: xom9ikk/dotenv@v24849      - name: Generate ENV related extend file for docker-compose50        uses: cuchi/jinja2-action@v1.2.051        with:52          template: .docker/docker-compose.tmp-dev.j253          output_file: .docker/docker-compose.${{ matrix.network }}.yml54          variables: |55            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}56            NETWORK=${{ matrix.network }}57   58      - name: Show build configuration59        run: cat .docker/docker-compose.${{ matrix.network }}.yml6061      - name: Build the stack62        run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans6364      - uses: actions/setup-node@v365        with:66          node-version: 166768      - name: Install jq69        run: sudo apt install jq -y7071      - name: Run generate_types_package script72        working-directory: tests73        run: |74          yarn install75          /bin/bash ./scripts/generate_types_package.sh --release ${{ matrix.usage }}76        env:77          RPC_URL: http://127.0.0.1:9933/7879      - name: Stop running containers80        if: always()                   # run this step always81        run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" down8283      - name: Remove builder cache84        if: always()                   # run this step always85        run: |86          docker builder prune -f -a87          docker system prune -f88          docker image prune -f -a