Skip to content

Commit c1403d4

Browse files
committed
Add simple ci action
1 parent a5d595a commit c1403d4

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: ci
2+
on: [push, pull_request]
3+
4+
env:
5+
RUSTFLAGS: "-Dwarnings"
6+
7+
jobs:
8+
test:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
container: ghcr.io/verdiwm/ci-image:latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Try building
16+
run: cargo xtask build
17+
18+
lint:
19+
name: Lint project
20+
runs-on: ubuntu-latest
21+
container: ghcr.io/verdiwm/ci-image:latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
# - name: Run tests
26+
# run: cargo nextest run --all-features
27+
28+
- name: Check clippy
29+
run: cargo clippy --all-targets --all-features
30+
31+
fmt:
32+
name: Check Formatting
33+
runs-on: ubuntu-latest
34+
container: ghcr.io/verdiwm/ci-image:latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Run formatter
38+
run: cargo fmt --check

0 commit comments

Comments
 (0)