From fda14f15bf07c4da3f81aa7786c006600db48e1f Mon Sep 17 00:00:00 2001 From: mertwole <33563701+mertwole@users.noreply.github.com> Date: Thu, 22 Aug 2024 01:10:06 +0700 Subject: [PATCH] chore(ci): Add tests to CI (#38) --- .github/workflows/ci.yml | 11 ++++++++++- README.md | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f2e619..85570a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,4 +35,13 @@ jobs: - name: Run clippy run: cargo clippy --all-targets -- -D warnings $(cat .lints | cut -f1 -d"#" | tr '\n' ' ') - name: Run rustfmt - run: cargo fmt -- --check \ No newline at end of file + run: cargo fmt -- --check + tests: + runs-on: self-hosted + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install rust toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Run tests + run: cargo test --release --all-targets diff --git a/README.md b/README.md index b72b498..4178fa0 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Ledger-tui is an application for managing crypto assets on a [ledger](https://ww > [!NOTE] > This software is not guaranteed to work properly. Any usage can lead to funds loss and `ledger` device corruption. +[![CI](https://github.com/mertwole/ledger-tui/actions/workflows/ci.yml/badge.svg)](https://github.com/mertwole/ledger-tui/actions/workflows/ci.yml) + ## Build ### Ubuntu 24.0