added test workflow
This commit is contained in:
22
.gitea/workflows/cargo-test.yml
Normal file
22
.gitea/workflows/cargo-test.yml
Normal 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
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
pub trait ToHtml {
|
pub trait ToHtml {
|
||||||
fn to_html(self) -> String;
|
fn to_html(self) -> String;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user