1
0
mirror of https://github.com/dnpm-dip/mv64e-mtb-dto-rs.git synced 2025-07-03 03:22:53 +00:00

Add GitHub workflow to run tests

This commit is contained in:
2024-07-12 09:38:29 +02:00
parent f0cd2960ab
commit d42565cc7e
2 changed files with 23 additions and 1 deletions

22
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: "Run Tests"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

View File

@ -34,7 +34,7 @@ impl FromStr for Mtb {
/// use std::str::FromStr;
///
/// fn main() {
/// const MTB_JSON: &str = include_str!("../tests/fake_MTBFile.json");
/// const MTB_JSON: &str = include_str!("../tests/mv64e-mtb-fake-patient.json");
///
/// let mtb_file = Mtb::from_str(MTB_JSON).unwrap();
/// println!("{:#?}", mtb_file);