Clean up wallet syncing code #8883
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: Build and run specific tests on a private tangle | |
on: | |
push: | |
branches: [develop, staging, "2.0"] | |
paths: | |
- ".cargo/config.toml" | |
- ".github/workflows/private-tangle-tests.yml" | |
- ".github/actions/**" | |
- "**.rs" | |
- "**/tests/**" | |
- "**/test/**" | |
- "**Cargo.toml" | |
- "**Cargo.lock" | |
- "!cli/**" # Exclude CLI | |
pull_request: | |
branches: [develop, staging, "2.0"] | |
paths: | |
- ".cargo/config.toml" | |
- ".github/workflows/private-tangle-tests.yml" | |
- ".github/actions/**" | |
- "**.rs" | |
- "**/tests/**" | |
- "**/test/**" | |
- "**Cargo.toml" | |
- "**Cargo.lock" | |
- "!cli/**" # Exclude CLI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_INCREMENTAL: 0 | |
jobs: | |
crate: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: ./.github/actions/setup-rust | |
- name: Install required packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install libudev-dev libusb-1.0-0-dev | |
- name: Install Nextest | |
uses: taiki-e/install-action@nextest | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Start private tangle | |
uses: "./.github/actions/private-tangle/setup" | |
- name: Start ledger nano | |
uses: "./.github/actions/ledger-nano" | |
- name: Run tests | |
run: cargo ci-tangle-test | |
- name: Tear down private tangle | |
if: always() | |
uses: "./.github/actions/private-tangle/tear-down" |