Skip to content

Update provider

Update provider #46

Workflow file for this run

name: Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-rpc-provider:
name: Check RPC provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
env:
GOMPLATE_VERSION: 3.11.5
MILLER_VERSION: 6.8.0
run: |
BIN_PATH=$HOME/.local/bin
rm -rf ${BIN_PATH} || true
mkdir -p ${BIN_PATH}
# gomplate
curl -L -o ${BIN_PATH}/gomplate \
https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-amd64
# miller
curl -LO https://github.com/johnkerl/miller/releases/download/v${MILLER_VERSION}/miller-${MILLER_VERSION}-linux-386.tar.gz
tar -zxf miller-${MILLER_VERSION}-linux-386.tar.gz -C ./
mv miller-${MILLER_VERSION}-linux-386/mlr $BIN_PATH/
# set execute permission
chmod +x ${BIN_PATH}/gomplate
chmod +x ${BIN_PATH}/mlr
# clean
rm -rf miller-*
- name: Generate cds
run: scripts/generate-cds.sh
- name: Preview changes
env:
GITHUB_TOKEN: ${{ secrets.GH_TKN_DARWINIA }}
run: cat dist/cds.local.yaml
check-fishnet:
name: Check fishnet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Lint
run: |
cd analysis/fishnet
cargo clippy --release --all -- -D warnings
- name: Run tests
run: |
cd analysis/fishnet
cargo test --release