diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml new file mode 100644 index 0000000..059fb67 --- /dev/null +++ b/.github/workflows/rust-ci.yml @@ -0,0 +1,34 @@ +name: Rust CI +on: + push: + branches: [main] + pull_request: +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - name: cargo check + run: cargo check + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - name: cargo clippy + run: cargo clippy + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - name: cargo fmt + run: cargo fmt + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - name: cargo test + run: cargo test diff --git a/src/bookmark_reader/firefox.rs b/src/bookmark_reader/firefox.rs index 84580d3..99f78c1 100644 --- a/src/bookmark_reader/firefox.rs +++ b/src/bookmark_reader/firefox.rs @@ -223,7 +223,7 @@ mod tests { #[test] fn test_parse_all() { - let source_path = Path::new("test_data/bookmarks_firefox.jsonlz4"); + let source_path = Path::new("test_data/bookmarks_firefox.json"); assert!(source_path.exists()); let bookmark_reader = FirefoxBookmarkReader; @@ -244,7 +244,7 @@ mod tests { #[test] fn test_parse_folder() { - let source_path = Path::new("test_data/bookmarks_firefox.jsonlz4"); + let source_path = Path::new("test_data/bookmarks_firefox.json"); assert!(source_path.exists()); let bookmark_reader = FirefoxBookmarkReader;