This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
fix peer id -> did uri in sdk #556
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
pkg: ["lib", ".", "sdk", "sdk-wasm"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Kepler repository | |
uses: actions/checkout@v2 | |
- name: Add WASM target | |
if: ${{ matrix.pkg == 'sdk-wasm' }} | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Build | |
working-directory: ${{ matrix.pkg }} | |
run: cargo build | |
- name: Run tests | |
if: ${{ matrix.pkg != 'sdk-wasm' }} | |
working-directory: ${{ matrix.pkg }} | |
run: cargo test | |
clippy: | |
strategy: | |
fail-fast: false | |
matrix: | |
pkg: ["lib", ".", "sdk", "sdk-wasm"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Kepler repository | |
uses: actions/checkout@v2 | |
- name: Add WASM target | |
if: ${{ matrix.pkg == 'sdk-wasm' }} | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Clippy | |
working-directory: ${{ matrix.pkg }} | |
run: RUSTFLAGS="-Dwarnings" cargo clippy | |
fmt: | |
strategy: | |
fail-fast: false | |
matrix: | |
pkg: ["lib", ".", "sdk", "sdk-wasm"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Kepler repository | |
uses: actions/checkout@v2 | |
- name: Add WASM target | |
if: ${{ matrix.pkg == 'sdk-wasm' }} | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: Fmt | |
working-directory: ${{ matrix.pkg }} | |
run: cargo fmt -- --check |