diff --git a/.drone.yml b/.drone.yml index 4a722d4..57d8be6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,11 +4,12 @@ type: docker name: default steps: - - name: Checks - image: nixos/nix:master + - name: Build & Test + image: rust:latest commands: - - nix --extra-experimental-features "nix-command flakes" flake check - - nix --extra-experimental-features "nix-command flakes" build .#checks.x86_64-linux.ansi-to-tui-llvm-coverage - - name: upload-codecov - image: robertstettner/drone-codecov - files: result + - cargo build + - cargo test + - name: Bench + image: rust:latest + commands: + - cargo bench diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f94bef3..e25026e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,7 +2,6 @@ name: Build on: push: - branches: [ master ] pull_request: branches: [ master ] @@ -15,8 +14,20 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Build - run: cargo build --verbose - - name: Run tests - run: cargo test --verbose + - uses: actions/checkout@v3 + + - name: Install nix + uses: cachix/install-nix-action@v27 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix flake check + - run: nix --extra-experimental-features "nix-command flakes" build .#checks.x86_64-linux.ansi-to-tui-llvm-coverage + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + flags: unittests + name: codecov-ansi-to-tui + fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} + files: ./result + verbose: true diff --git a/src/lib.rs b/src/lib.rs index b3fec1e..d5fde47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -46,7 +46,6 @@ use tui::text::Text; /// IntoText will convert any type that has a AsRef<[u8]> to a Text. pub trait IntoText { /// Convert the type to a Text. - #[allow(clippy::wrong_self_convention)] fn into_text(&self) -> Result, Error>; /// Convert the type to a Text while trying to copy as less as possible #[cfg(feature = "zero-copy")]