difftreelog
Removed job dependencie.
in: master
1 file changed
.github/workflows/node_build_test.ymldiffbeforeafterboth1name: Develop - Build & test23# 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 RUST_TOOLCHAIN: nightly-2022-05-1120 REPO_URL: ${{ github.server_url }}/${{ github.repository }}21 POLKA_VERSION: release-v0.9.242223# A workflow run is made up of one or more jobs that can run sequentially or in parallel24jobs:25 build:26 # The type of runner that the job will run on27 runs-on: self-hosted-ci2829 needs: pre-requisites30 name: Build Container, Spin it Up an test3132 continue-on-error: false #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.3334 strategy:35 matrix:36 include:37 - network: "Opal"38 features: "--features=opal-runtime"39 - network: "Quartz"40 features: "--features=quartz-runtime"41 - network: "Unique"42 features: "--features=unique-runtime"4344 steps:45 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it46 - uses: actions/checkout@v347 with:48 ref: ${{ github.event.pull_request.head.sha }} #Checking out head commit4950 - name: Generate ENV related extend file for docker-compose51 uses: cuchi/jinja2-action@v1.2.052 with:53 template: .docker/docker-compose.tmp.j254 output_file: .docker/docker-compose.${{ matrix.network }}.yml55 variables: |56 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git57 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}58 POLKA_VERSION=${{ env.POLKA_VERSION }}59 FEATURE=${{ matrix.features }}60 BRANCH=${{ github.head_ref }}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 --build6768 - name: Wait69 run: sleep 420s7071 - name: Install node72 uses: actions/setup-node@v173 with:74 node-version: 16.x7576 - name: Install dependencies77 run: |78 cd tests79 yarn install80 yarn add mochawesome81 yarn --pure-lockfile8283 - name: Run tests84 run: |85 cd tests86 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}87 env:88 RPC_URL: http://127.0.0.1:9933/8990 - name: Test Report91 uses: phoenix-actions/test-reporting@v892 id: test-report # Set ID reference for step93 if: success() || failure() # run this step even if previous step failed94 with:95 name: Tests ${{ matrix.network }} # Name of the check run which will be created96 path: tests/mochawesome-report/test-*.json # Path to test results97 reporter: mochawesome-json98 fail-on-error: 'false'99100 - name: Stop running containers101 if: always() # run this step always102 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down