git.delta.rocks / unique-network / refs/commits / 104c91ace9f1

difftreelog

source

.github/workflows/try-runtime_v2.yml2.5 KiBsourcehistory
1on:2  workflow_call:34# A workflow run is made up of one or more jobs that can run sequentially or in parallel5jobs:6  try-runtime:7    # The type of runner that the job will run on8    runs-on: self-hosted-ci9    10    name: ${{ matrix.network }}1112    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.1314    strategy:15      matrix:16        include:17          - network: opal18            features: opal-runtime19            replica_from_address: wss://eu-ws-opal.unique.network:44320          - network: quartz21            features: quartz-runtime22            replica_from_address: wss://eu-ws-quartz.unique.network:44323          - network: unique24            features: unique-runtime25            replica_from_address: wss://eu-ws.unique.network:4432627    steps:2829      - name: Clean Workspace30        uses: AutoModality/action-clean@v1.1.03132      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it33      - uses: actions/checkout@v334        with:35          ref: ${{ github.head_ref }}  #Checking out head commit3637      - name: Read .env file38        uses: xom9ikk/dotenv@v1.0.23940      - name: Generate ENV related extend file for docker-compose41        uses: cuchi/jinja2-action@v1.2.042        with:43          template: .docker/docker-compose.try-runtime.j244          output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml45          variables: |46            RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}47            FEATURE=${{ matrix.features }}48            REPLICA_FROM=${{ matrix.replica_from_address }}4950      - name: Show build configuration51        run: cat .docker/docker-compose.try-runtime.${{ matrix.network }}.yml5253      - name: Build the stack54        run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" up --build  --force-recreate --timeout 300 --remove-orphans --exit-code-from try-runtime55 56      - name: Collect Docker Logs57        if: success() || failure()58        uses: jwalton/gh-docker-logs@v2.2.059        with:60          dest: './try-runtime-logs.${{ matrix.network }}'61          images: 'try-runtime' 6263      - name: Show docker logs64        run: cat './try-runtime-logs.${{ matrix.network }}/try-runtime.log'6566      - name: Stop running containers67        if: always()                   # run this step always68        run: docker-compose -f ".docker/docker-compose-try-runtime.yml" -f ".docker/docker-compose.try-runtime.${{ matrix.network }}.yml" down