Skip to content

Commit

Permalink
test: add test for bridges
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed Jun 29, 2021
1 parent a71be7a commit c3e0239
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .github/workflows/bridges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build Bridges Repo
on:
push:
branches:
- "*"

workflow_dispatch:
inputs:
srtool_tag:
description: The SRTOOL tag to use
default: 1.53.0
required: false

schedule:
- cron: "00 04 * * 1" # 4AM weekly on mondays

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
chain: ["millau", "rialto"]

name: Build ${{ matrix.chain }}
steps:

- uses: actions/checkout@v2
with:
path: action

- uses: actions/checkout@v2
with:
repository: paritytech/parity-bridges-common
fetch-depth: 0
path: repo

- name: debug
run: |
ls -al
pwd
- name: Srtool build
id: srtool_build
uses: ./action
with:
chain: ${{ matrix.chain }}
tag: ${{ github.event.inputs.srtool_tag }}
runtime_dir: bin/${{ matrix.chain }}/runtime
workdir: "${{ github.workspace }}/repo"

- name: Summary
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . | tee ${{ matrix.chain }}-srtool-digest.json
echo "Compact Runtime location : ${{ steps.srtool_build.outputs.wasm }}"
echo "Compressed Runtime location : ${{ steps.srtool_build.outputs.wasm_compressed }}"
2 changes: 1 addition & 1 deletion .github/workflows/cumulus.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Polkadot Repo
name: Build Cumulus Repo
on:
push:
branches:
Expand Down

0 comments on commit c3e0239

Please sign in to comment.