Skip to content

Commit c98c896

Browse files
committed
Initial commit
0 parents  commit c98c896

File tree

15 files changed

+2307
-0
lines changed

15 files changed

+2307
-0
lines changed

.github/workflows/static.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Static Analysis
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'src/**'
8+
- 'tests/**'
9+
- 'Cargo.toml'
10+
- '.github/workflows/static.yml'
11+
pull_request:
12+
branches: [ main ]
13+
paths:
14+
- 'src/**'
15+
- 'tests/**'
16+
- 'Cargo.toml'
17+
- '.github/workflows/static.yml'
18+
19+
jobs:
20+
lint-and-audit:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup Rust Environment
27+
run: |
28+
# Install rustup
29+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
30+
. "$HOME/.cargo/env"
31+
# Install Clippy and rustfmt
32+
rustup component add clippy rustfmt
33+
# Install cargo-audit
34+
cargo install cargo-audit
35+
36+
- name: Print versions
37+
run: |
38+
rustup --version
39+
rustc --version
40+
cargo --version
41+
cargo clippy --version
42+
cargo fmt --version
43+
cargo audit --version
44+
45+
- name: Run clippy (lint)
46+
run: cargo clippy -- -D warnings
47+
48+
- name: Check Code Formatting with rustfmt
49+
run: cargo fmt -- --check
50+
51+
- name: Security Audit with cargo-audit
52+
run: cargo audit

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Multi-platform Test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'src/**'
8+
- 'tests/**'
9+
- 'Cargo.toml'
10+
- '.github/workflows/test.yml'
11+
pull_request:
12+
branches: [ main ]
13+
paths:
14+
- 'src/**'
15+
- 'tests/**'
16+
- 'Cargo.toml'
17+
- '.github/workflows/test.yml'
18+
19+
jobs:
20+
build-and-test:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest, windows-latest, macos-latest]
25+
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Install Rust
30+
run: |
31+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
32+
shell: bash
33+
34+
- id: versions
35+
name: Print versions
36+
run: |
37+
rustup --version
38+
rustc --version
39+
cargo --version
40+
shell: bash
41+
42+
- name: Build release
43+
run: cargo build --release
44+
shell: bash
45+
46+
- name: Run tests
47+
run: cargo test --release
48+
shell: bash
49+
50+
- name: Test installation
51+
run: |
52+
cargo install --path .
53+
shell: bash

.gitignore

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

0 commit comments

Comments
 (0)