Skip to content

Commit a417ffd

Browse files
committed
👷 Add test workflow
1 parent 2088ea3 commit a417ffd

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.devcontainer/cspell-dict/mountix-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ clippy
44
defaultauthdb
55
dotenv
66
dotenvy
7+
dtolnay
78
geosearch
89
geospatial
910
INITDB
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test and Lint
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
workflow_dispatch:
11+
workflow_call:
12+
13+
jobs:
14+
test-and-lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Rust
20+
uses: dtolnay/rust-toolchain@stable
21+
with:
22+
components: rustfmt, clippy
23+
24+
- name: Check formatting
25+
run: cargo fmt -- --check
26+
27+
- name: Run Clippy
28+
run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)