From c10ad0f6a64649b4e950b4a2045362b56aab7344 Mon Sep 17 00:00:00 2001 From: Kerdonov Date: Mon, 10 Nov 2025 00:15:26 +0200 Subject: [PATCH] added test workflow --- .gitea/workflows/cargo-test.yml | 22 ++++++++++++++++++++++ cracked_md/src/to_html.rs | 1 - 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/cargo-test.yml diff --git a/.gitea/workflows/cargo-test.yml b/.gitea/workflows/cargo-test.yml new file mode 100644 index 0000000..1e9eab2 --- /dev/null +++ b/.gitea/workflows/cargo-test.yml @@ -0,0 +1,22 @@ +name: Test the running changes + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: Test + runs-on: rust-latest + + steps: + - run: apt-get update -y && apt-get install nodejs -y + - uses: actions/checkout@v4 + - run: cargo build --verbose + - run: cargo clippy -- -D warnings + - run: cargo test --verbose diff --git a/cracked_md/src/to_html.rs b/cracked_md/src/to_html.rs index b9f3aae..41fff3d 100644 --- a/cracked_md/src/to_html.rs +++ b/cracked_md/src/to_html.rs @@ -1,4 +1,3 @@ pub trait ToHtml { fn to_html(self) -> String; } -