Skip to content

Commit c9190cb

Browse files
feat: introduce tests (#522)
1 parent c9afb52 commit c9190cb

File tree

14 files changed

+635
-17
lines changed

14 files changed

+635
-17
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run Tests
2+
on:
3+
push:
4+
5+
jobs:
6+
tests:
7+
name: Run Tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v2
12+
- name: Install Rust
13+
uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
override: true
17+
profile: minimal
18+
components: rustfmt
19+
- name: Install libudev-dev
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install --assume-yes libudev-dev
23+
- name: Run Tests
24+
run: cargo test --all-features -- --nocapture

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/target
22
/test*
3+
!/tests
34
.DS_Store
45
*.wasm
56
*.json

0 commit comments

Comments
 (0)