Skip to content

chore: add tests for Peregrine #28

chore: add tests for Peregrine

chore: add tests for Peregrine #28

Workflow file for this run

name: Lint and Test
on:
push:
branches:
- "main"
paths:
- "**.ts"
pull_request:
branches:
- "**"
jobs:
build-binaries:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Download kilt-node repo
uses: actions/checkout@v4
with:
repository: KILTprotocol/kilt-node
# TODO: Change to something else or make it a parameter
ref: 'aa/dip'
- name: Install required libraries
uses: arduino/setup-protoc@v2
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Build binaries
uses: actions-rs/cargo@v1
with:
command: build
# TODO: Change to the whole thing
# args: --release --locked -p dip-provider-node-template -p dip-consumer-node-template -p kilt-parachain
args: --locked -p standalone-node
- name: Upload dip-provider-node-template binary
uses: actions/upload-artifact@v3
with:
name: dip-provider-node-template
# TODO: Change to right name
path: target/release/standalone-node
retention-days: 1
# - name: Upload dip-consumer-node-template binary
# uses: actions/upload-artifact@v3
# with:
# name: dip-consumer-node-template
# path: target/release/dip-consumer-node-template
# retention-days: 1
# - name: Upload kilt-parachain binary
# uses: actions/upload-artifact@v3
# with:
# name: kilt-parachain
# path: target/release/kilt-parachain
# retention-days: 1
# lint-and-test:
# env:
# ACTIONS_STEP_DEBUG: true
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - name: Install rustup
# run: curl -y --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# - name: Show targets
# run: rustup show
# # - name: Install minikube
# # uses: medyagh/[email protected]
# # - name: Download source
# # uses: actions/checkout@v4
# # with:
# # fetch-depth: 0
# # - name: Setup Node.js
# # uses: actions/setup-node@v3
# # with:
# # node-version-file: ".nvmrc"
# # cache: "yarn"
# # - name: Install dependencies
# # run: yarn install --immutable
# # - name: Lint
# # run: yarn lint
# # - name: Check dependency duplication
# # run: if ! yarn dedupe --check; then echo "::warning ::Dependencies may be deduplicated"; fi;
# # - name: Check versioning
# # run: yarn version check
# # - name: Set environment variables
# # run: cat ./tests/.env.test >> $GITHUB_ENV
# # - name: Spin up network (in the background)
# # # run: yarn test:e2e:start-network >> $GITHUB_OUTPUT &
# # # Additional env to disable port-fwd for metrics (https://github.com/paritytech/zombienet/issues/1578)
# # env:
# # RUN_IN_CONTAINER: 1
# # # DEBUG: zombie*
# # run: yarn test:e2e:start-network
# # id: zombienet_setup
# # # This is necessary since the `zombienet spawn` process never exits.
# # - name: Wait until nodes are reachable on their WS port
# # run: until (nc -w 3 127.0.0.1 ${{ env.RELAY_ALICE_RPC }} && nc -w 3 127.0.0.1 ${{ env.PROVIDER_ALICE_RPC }} && nc -w 3 127.0.0.1 ${{ env.CONSUMER_ALICE_RPC }}) ; do tail -n 50 ${{ steps.zombienet_setup.outputs.* }} && sleep 1; done
# # - name: Run integration tests
# # run: yarn test:e2e