Skip to content

Commit 8ff9830

Browse files
committed
Add a basic continuous integration workflow.
1 parent 2481f9a commit 8ff9830

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
ci:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Install libzfs
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y libzfslinux-dev
25+
26+
- name: Build
27+
run: cargo build
28+
29+
- name: Run tests
30+
run: cargo test

0 commit comments

Comments
 (0)