Skip to content

Commit f5a046b

Browse files
committed
initial commit
0 parents  commit f5a046b

8 files changed

Lines changed: 3016 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
RUSTFLAGS: -Dwarnings
11+
12+
jobs:
13+
lint:
14+
name: Lint
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18+
19+
- name: Install Rust Toolchain
20+
run: rustup toolchain install stable --profile minimal --component clippy --component rustfmt --no-self-update
21+
22+
- uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
23+
24+
- name: Run Rustfmt
25+
run: cargo fmt --all -- --check
26+
27+
- name: Run Clippy
28+
run: cargo clippy --workspace --all-features --tests -- -D clippy::all
29+
30+
test:
31+
name: Test (ubuntu)
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
37+
- name: Install Rust Toolchain
38+
run: rustup toolchain install stable --profile minimal --no-self-update
39+
40+
- uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
41+
with:
42+
key: ${{ github.job }}
43+
44+
- name: Run tests
45+
run: cargo test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target
2+
3+
.DS_Store
4+
.env

0 commit comments

Comments
 (0)