difftreelog
Merge pull request #525 from UniqueNetwork/CI-84-cleanup-ci
in: master
Ci 84 cleanup ci
5 files changed
.docker/Dockerfile-chain-dev-unitdiffbeforeafterboth232324WORKDIR /dev_chain24WORKDIR /dev_chain252526RUN cargo test --features=limit-testing26CMD cargo test --features=limit-testing2727.envdiffbeforeafterboth7KUSAMA_MAINNET_BRANCH=release-v0.9.267KUSAMA_MAINNET_BRANCH=release-v0.9.268QUARTZ_MAINNET_TAG=quartz-v924012-28QUARTZ_MAINNET_TAG=quartz-v924012-2910UNQWND_MAINNET_BRANCH=release-v0.9.2491110OPAL_REPLICA_FROM=wss://eu-ws-opal.unique.network:44312OPAL_REPLICA_FROM=wss://eu-ws-opal.unique.network:44311QUARTZ_REPLICA_FROM=wss://eu-ws-quartz.unique.network:44313QUARTZ_REPLICA_FROM=wss://eu-ws-quartz.unique.network:443.github/workflows/codestyle.ymldiffbeforeafterboth49 run: cargo fmt -- --check # In that mode it returns only exit code.49 run: cargo fmt -- --check # In that mode it returns only exit code.50 - name: Cargo fmt state50 - name: Cargo fmt state51 if: success()51 if: success()52 run: echo "Nothing to do. Cargo fmt returned exit code 0."52 run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."5353545455 clippy:55 clippy:.github/workflows/dev-build-tests.ymldiffbeforeafterboth125 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down125 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.${{ matrix.network }}.yml" down126127128 dev_build_unit_test:129 # The type of runner that the job will run on130 runs-on: [self-hosted-ci,medium]131 timeout-minutes: 1380132133 name: unit tests134135136 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.137138139 steps:140 - name: Skip if pull request is in Draft141 # `if: github.event.pull_request.draft == true` should be kept here, at142 # the step level, rather than at the job level. The latter is not143 # recommended because when the PR is moved from "Draft" to "Ready to144 # review" the workflow will immediately be passing (since it was skipped),145 # even though it hasn't actually ran, since it takes a few seconds for146 # the workflow to start. This is also disclosed in:147 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/17148 # That scenario would open an opportunity for the check to be bypassed:149 # 1. Get your PR approved150 # 2. Move it to Draft151 # 3. Push whatever commits you want152 # 4. Move it to "Ready for review"; now the workflow is passing (it was153 # skipped) and "Check reviews" is also passing (it won't be updated154 # until the workflow is finished)155 if: github.event.pull_request.draft == true156 run: exit 1157158 - name: Clean Workspace159 uses: AutoModality/action-clean@v1.1.0160161 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it162 - uses: actions/checkout@v3163 with:164 ref: ${{ github.head_ref }} #Checking out head commit165166 - name: Read .env file167 uses: xom9ikk/dotenv@v1.0.2168169 - name: Generate ENV related extend file for docker-compose170 uses: cuchi/jinja2-action@v1.2.0171 with:172 template: .docker/docker-compose.tmp-unit.j2173 output_file: .docker/docker-compose.unit.yml174 variables: |175 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}176 FEATURE=${{ matrix.features }}177 178179 - name: Show build configuration180 run: cat .docker/docker-compose.unit.yml181182 - name: Build the stack183 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" up -d --build --remove-orphans184185186 - name: Stop running containers187 if: always() # run this step always188 run: docker-compose -f ".docker/docker-compose-dev.yaml" -f ".docker/docker-compose.unit.yml" down189126.github/workflows/unit-test.ymldiffbeforeafterbothno changes