Skip to content

Commit a1bb86e

Browse files
committed
Add CI
1 parent ee0d23b commit a1bb86e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: Tests
11+
runs-on: ubuntu-latest
12+
env:
13+
CARGO_TERM_COLOR: always
14+
steps:
15+
- uses: actions/checkout@v5
16+
- name: Build
17+
run: cargo build --verbose
18+
- name: Run tests
19+
run: cargo test --verbose
20+
21+
clippy:
22+
name: Clippy
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v5
26+
- name: Clippy
27+
run: cargo clippy --all-targets
28+
29+
pre-commit:
30+
name: Pre-Commit
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v5
35+
36+
- name: Run pre-commit
37+
uses: pre-commit/action@v3.0.1
38+
env:
39+
SKIP: clippy

0 commit comments

Comments
 (0)