chore: added max limit to the oracle stores (#181) #540
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: | |
- master | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
env: | |
CARGO_NET_GIT_FETCH_WITH_CLI: true | |
jobs: | |
# 5irechain linting(fmt + clippy) | |
lint_and_test_and_integration_test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ github.token }} | |
submodules: recursive | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
toolchain: 1.74.0 | |
targets: wasm32-unknown-unknown | |
components: rustfmt | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: "${{ secrets.READ_DEPLOY_KEY }}" | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: "3.9.1" | |
- name: Install Protobuf and Libclang | |
run: sudo apt-get install -y protobuf-compiler libclang-dev | |
- name: Check format | |
run: cargo +nightly fmt --all --check | |
- name: Add Cargo Clippy | |
run: rustup component add clippy | |
- name: Run sccache-cache | |
uses: mozilla-actions/[email protected] | |
- name: Configure sccache | |
run: | | |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | |
- name: Check | |
run: cargo check --features all | |
- name: Build Node for Integration Tests (Release) | |
run: cargo build --release --features firechain-qa | |
- name: Install Nodejs | |
uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
cache-dependency-path: "./integration-test-suite/yarn.lock" | |
- name: Install Packages | |
run: cd integration-test-suite && yarn install --frozen-lockfile | |
- name: Run Integration Tests | |
#if: github.event.pull_request.merged == true | |
run: cd integration-test-suite && yarn test | |
- name: Test | |
run: cargo test --features firechain-qa | |
# - name: Clippy | |
# run: cargo clippy --features all -- -D warnings | |
- name: Save Cache | |
if: ${{ !cancelled() }} | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
target/release | |
target/debug | |
key: ${{ runner.os }}-cargo-index-${{ github.ref_name }}-integration-tests |