difftreelog
Fixing spoted items.
in: master
5 files changed
.docker/Dockerfile-parachaindiffbeforeafterboth23RUN rustup target add wasm32-unknown-unknown --toolchain $RUST_TOOLCHAIN23RUN rustup target add wasm32-unknown-unknown --toolchain $RUST_TOOLCHAIN2424252526RUN mkdir unique_parachain26RUN mkdir /unique_parachain27WORKDIR /unique_parachain27WORKDIR /unique_parachain282829# ===== BUILD ======29# ===== BUILD ======32ARG PROFILE=release32ARG PROFILE=release33ARG FEATURE=33ARG FEATURE=343435RUN mkdir unique_parachain35RUN mkdir /unique_parachain36WORKDIR /unique_parachain36WORKDIR /unique_parachain373738RUN git clone $REPO_URL -b $BRANCH38RUN git clone $REPO_URL -b $BRANCH39RUN cargo build $FEATURE --$PROFILE39RUN cargo build $FEATURE --$PROFILE40 # && \41 # cargo test424043# ===== BUILD POLKADOT =====41# ===== BUILD POLKADOT =====44FROM rust-builder as builder-polkadot42FROM rust-builder as builder-polkadot454346ARG POLKA_VERSION=release-v0.9.2444ARG POLKA_VERSION=release-v0.9.2447ENV POLKA_VERSION $POLKA_VERSION45ENV POLKA_VERSION $POLKA_VERSION484649RUN mkdir unique_parachain47RUN mkdir /unique_parachain50WORKDIR /unique_parachain48WORKDIR /unique_parachain514952RUN git clone -b $POLKA_VERSION --depth 1 https://github.com/paritytech/polkadot.git && \50RUN git clone -b $POLKA_VERSION --depth 1 https://github.com/paritytech/polkadot.git && \77COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/75COPY --from=builder-unique /unique_parachain/target/release/unique-collator /unique-chain/target/release/78COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/76COPY --from=builder-polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/797780COPY ["./launch-config.json", "/polkadot-launch/launch-config.json"]78COPY --from=builder-unique /unique_parachain/launch-config.json /polkadot-launch/launch-config.json8179828083CMD export NVM_DIR="$HOME/.nvm" && \81CMD export NVM_DIR="$HOME/.nvm" && \.github/workflows/codestyle.ymldiffbeforeafterboth14 runs-on: self-hosted-ci14 runs-on: self-hosted-ci151516 steps:16 steps:17 - name: Skip if pull request is in Draft18 # `if: github.event.pull_request.draft == true` should be kept here, at19 # the step level, rather than at the job level. The latter is not20 # recommended because when the PR is moved from "Draft" to "Ready to21 # review" the workflow will immediately be passing (since it was skipped),22 # even though it hasn't actually ran, since it takes a few seconds for23 # the workflow to start. This is also disclosed in:24 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1725 # That scenario would open an opportunity for the check to be bypassed:26 # 1. Get your PR approved27 # 2. Move it to Draft28 # 3. Push whatever commits you want29 # 4. Move it to "Ready for review"; now the workflow is passing (it was30 # skipped) and "Check reviews" is also passing (it won't be updated31 # until the workflow is finished)32 if: github.event.pull_request.draft == true33 run: exit 13417 - uses: actions/checkout@v135 - uses: actions/checkout@v118 - name: Install latest nightly36 - name: Install latest nightly30 runs-on: self-hosted-ci48 runs-on: self-hosted-ci314932 steps:50 steps:51 - name: Skip if pull request is in Draft52 # `if: github.event.pull_request.draft == true` should be kept here, at53 # the step level, rather than at the job level. The latter is not54 # recommended because when the PR is moved from "Draft" to "Ready to55 # review" the workflow will immediately be passing (since it was skipped),56 # even though it hasn't actually ran, since it takes a few seconds for57 # the workflow to start. This is also disclosed in:58 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1759 # That scenario would open an opportunity for the check to be bypassed:60 # 1. Get your PR approved61 # 2. Move it to Draft62 # 3. Push whatever commits you want63 # 4. Move it to "Ready for review"; now the workflow is passing (it was64 # skipped) and "Check reviews" is also passing (it won't be updated65 # until the workflow is finished)66 if: github.event.pull_request.draft == true67 run: exit 168 33 - uses: actions/checkout@v369 - uses: actions/checkout@v334 - name: Install substrate dependencies70 - name: Install substrate dependencies.github/workflows/node_build_test.ymldiffbeforeafterboth69 with:69 with:70 template: .docker/docker-compose.tmp.j270 template: .docker/docker-compose.tmp.j271 output_file: .docker/docker-compose.${{ matrix.network }}.yml71 output_file: .docker/docker-compose.${{ matrix.network }}.yml72 variables: |72 variables: |73 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git73 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git74 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}74 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}75 POLKA_VERSION=${{ env.POLKA_VERSION }}75 POLKA_VERSION=${{ env.POLKA_VERSION }}76 FEATURE=${{ matrix.features }}76 FEATURE=${{ matrix.features }}77 BRANCH=${{ github.head_ref }}77 BRANCH=${{ github.event.pull_request.head.sha }}787879 - name: Show build configuration79 - name: Show build configuration80 run: cat .docker/docker-compose.${{ matrix.network }}.yml80 run: cat .docker/docker-compose.${{ matrix.network }}.yml87 node-version: 1687 node-version: 16888889 - name: Run tests89 - name: Run tests90 run: |90 run: |91 cd tests91 cd tests92 yarn install92 yarn install93 yarn add mochawesome93 yarn add mochawesome94 yarn --pure-lockfile94 echo "Ready to start tests"95 echo "Ready to start tests"95 node scripts/readyness.js96 node scripts/readyness.js96 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}97 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}98 env:97 env:99 RPC_URL: http://127.0.0.1:9933/98 RPC_URL: http://127.0.0.1:9933/10099.github/workflows/tests_codestyle.ymldiffbeforeafterboth13 runs-on: self-hosted-ci13 runs-on: self-hosted-ci141415 steps:15 steps:16 - name: Skip if pull request is in Draft17 # `if: github.event.pull_request.draft == true` should be kept here, at18 # the step level, rather than at the job level. The latter is not19 # recommended because when the PR is moved from "Draft" to "Ready to20 # review" the workflow will immediately be passing (since it was skipped),21 # even though it hasn't actually ran, since it takes a few seconds for22 # the workflow to start. This is also disclosed in:23 # https://github.community/t/dont-run-actions-on-draft-pull-requests/16817/1724 # That scenario would open an opportunity for the check to be bypassed:25 # 1. Get your PR approved26 # 2. Move it to Draft27 # 3. Push whatever commits you want28 # 4. Move it to "Ready for review"; now the workflow is passing (it was29 # skipped) and "Check reviews" is also passing (it won't be updated30 # until the workflow is finished)31 if: github.event.pull_request.draft == true32 run: exit 13316 - uses: actions/checkout@v334 - uses: actions/checkout@v317 35tests/scripts/readyness.jsdiffbeforeafterboth24 break;24 break;25 }25 }26 catch(e) {26 catch(e) {27 await sleep(60000);27 await sleep(10000);28 }28 }29 }29 }30}30}