File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Check
2+
3+ on :
4+ workflow_call
5+
6+ jobs :
7+ fmt :
8+ name : Format Check
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v4
13+ - name : Run cargo fmt
14+ run : cargo fmt --all -- --check
15+
16+ clippy :
17+ name : Clippy Check
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+ - name : Cache dependencies
23+ uses : actions/cache@v3
24+ with :
25+ path : |
26+ ~/.cargo/registry
27+ ~/.cargo/git
28+ target
29+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
30+ - name : Run cargo clippy
31+ run : cargo clippy --all-features --all-targets -- -Dwarnings
32+
33+ test :
34+ name : Tests
35+ runs-on : ubuntu-latest
36+ steps :
37+ - name : Checkout code
38+ uses : actions/checkout@v4
39+ - name : Cache dependencies
40+ uses : actions/cache@v3
41+ with :
42+ path : |
43+ ~/.cargo/registry
44+ ~/.cargo/git
45+ target
46+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
47+ - name : Run tests
48+ run : cargo test --verbose --all-features
49+
50+ build :
51+ name : Build ${{ matrix.os }} ${{ matrix.target }}
52+ runs-on : ${{ matrix.os }}
53+ strategy :
54+ fail-fast : false
55+ matrix :
56+ include :
57+ - target : x86_64-unknown-linux-gnu
58+ os : ubuntu-latest
59+ - target : x86_64-pc-windows-msvc
60+ os : windows-latest
61+ steps :
62+ - name : Checkout code
63+ uses : actions/checkout@v4
64+ - name : Cache dependencies
65+ uses : actions/cache@v3
66+ with :
67+ path : |
68+ ~/.cargo/registry
69+ ~/.cargo/git
70+ target
71+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
72+ - name : Run cargo check
73+ run : cargo check --verbose --target ${{ matrix.target }} --all-features
74+ - name : Build Release
75+ run : cargo build --release --target ${{ matrix.target }} --all-features
Original file line number Diff line number Diff line change 1+ name : Database Package CI
2+
3+ on :
4+ push :
5+ branches : ["master", "main", "develop"]
6+ pull_request :
7+ types : [opened, reopened, edited, synchronize]
8+ branches : ["master", "main", "develop"]
9+ paths-ignore :
10+ - ' *.md'
11+ - ' README.md'
12+
13+ jobs :
14+ check :
15+ uses : ./.github/workflows/check.yml
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments