Skip to content

Commit

Permalink
Create CI pipeline (#1)
Browse files Browse the repository at this point in the history
* Add rust ci

* Fix tests

* Don't run on push
  • Loading branch information
quambene authored Aug 27, 2023
1 parent 02c10fb commit 848c9d5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/bookmark_reader/firefox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 848c9d5

Please sign in to comment.