Add onchain tests in ci. #756
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: Rust | |
on: | |
push: | |
branches: | |
- master | |
pull_request_target: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: [self-hosted, integration-xl] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Download and Extract Cache | |
run: curl -L https://github.com/fuzzland/ityfuzz-test-cache/releases/latest/download/cache.tar.gz -o cache.tar.gz && tar -xzf cache.tar.gz | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Run integration tests (Offchain) | |
run: NO_TELEMETRY=1 python3 integration_test.py offchain | |
- name: Run integration tests (Onchain) | |
run: NO_TELEMETRY=1 python3 integration_test.py onchain | |
- name: Report onchain tests | |
env: | |
BOT_GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }} | |
PR_NUMBER: ${{ github.event.number }} | |
run: echo "PR=$PR_NUMBER" && python3 ci.py | |