added test workflow

This commit is contained in:
2025-11-10 00:15:26 +02:00
parent dbaa2feb48
commit c10ad0f6a6
2 changed files with 22 additions and 1 deletions

View File

@@ -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

View File

@@ -1,4 +1,3 @@
pub trait ToHtml {
fn to_html(self) -> String;
}