[feature] #3435: Introduce expression visitor #6596
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: I2::Dev::Tests | |
on: | |
pull_request: | |
branches: [iroha2-dev] | |
paths: | |
- '**.rs' | |
- '**.json' | |
- '**.toml' | |
- '.github/workflows/**.yml' | |
# Not part of the workspace | |
- '!wasm/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
runs-on: [self-hosted, Linux, iroha2ci] | |
container: | |
image: hyperledger/iroha2-ci:nightly-2022-12-22 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check config.md | |
if: always() | |
run: ./scripts/check.sh docs | |
- name: Check genesis.json | |
if: always() | |
run: ./scripts/check.sh genesis | |
- name: Check client_cli/config.json | |
if: always() | |
run: ./scripts/check.sh client | |
- name: Check peer/config.json | |
if: always() | |
run: ./scripts/check.sh peer | |
- name: Check schema.json | |
if: always() | |
run: ./scripts/check.sh schema | |
- name: Wasm build check | |
if: always() | |
working-directory: wasm | |
run: mold --run cargo build --target wasm32-unknown-unknown --quiet | |
with_coverage: | |
runs-on: [self-hosted, Linux, iroha2ci] | |
container: | |
image: hyperledger/iroha2-ci:nightly-2022-12-22 | |
steps: | |
- uses: actions/checkout@v3 | |
# TODO Remove this step #2165 | |
# - name: Adjust toolchain | |
# run: | | |
# rustup component add llvm-tools-preview | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests, with coverage | |
run: | | |
mold --run cargo llvm-cov clean --workspace | |
mold --run cargo llvm-cov --doc --no-report --all-features --workspace --no-fail-fast | |
mold --run cargo llvm-cov --no-report --ignore-filename-regex main.rs --all-features --workspace --no-fail-fast | |
- name: Generate lcov report | |
run: | | |
# generate report without tests | |
# https://github.com/taiki-e/cargo-llvm-cov#merge-coverages-generated-under-different-test-conditions | |
mold --run cargo llvm-cov --doctests --no-run --all-features --workspace --lcov --output-path lcov.info | |
- name: Upload coverage to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
files: lcov.info | |
fail_ci_if_error: true | |
commit_parent: ${{ github.event.pull_request.base.sha }} | |
integration: | |
runs-on: [self-hosted, Linux, iroha2ci] | |
container: | |
image: hyperledger/iroha2-ci:nightly-2022-12-22 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests, with no-default-features | |
run: | | |
mold --run cargo test --test mod --no-default-features -- \ | |
integration:: --skip unstable_network | |
unstable: | |
runs-on: [self-hosted, Linux, iroha2ci] | |
container: | |
image: hyperledger/iroha2-ci:nightly-2022-12-22 | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run tests | |
run: mold --run cargo test -p iroha_client --tests --no-default-features unstable_network --quiet |