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; } -