Skip to content

Commit a13c54e

Browse files
feat(dtt): ✨ v0.0.6
1 parent bc1e5f1 commit a13c54e

21 files changed

+379
-1012
lines changed

.cargo/config.toml

-2
This file was deleted.

.github/workflows/audit.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: 🧪 Audit
33
on:
44
push:
55
branches:
6+
- main
67
- feat/dtt
78
pull_request:
89
branches:
@@ -18,6 +19,10 @@ jobs:
1819
- uses: hecrj/setup-rust-action@v2
1920
- name: Install cargo-audit
2021
run: cargo install cargo-audit
22+
2123
- uses: actions/checkout@v4
22-
- name: Audit dependencies
24+
- name: Resolve dependencies
25+
run: cargo update
26+
27+
- name: Audit vulnerabilities
2328
run: cargo audit

.github/workflows/check.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: 🧪 Check
33
on:
44
push:
55
branches:
6+
- main
67
- feat/dtt
78
pull_request:
89
branches:

.github/workflows/coverage.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: 📶 Coverage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
coverage:
14+
name: Code Coverage
15+
runs-on: ubuntu-latest
16+
env:
17+
CARGO_INCREMENTAL: "0"
18+
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
19+
RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
20+
21+
steps:
22+
# Checkout the repository
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
# Setup Rust nightly
27+
- name: Install Rust
28+
uses: actions-rs/toolchain@v1
29+
id: toolchain
30+
with:
31+
toolchain: nightly
32+
override: true
33+
34+
# Configure cache for Cargo
35+
- name: Cache Cargo registry, index
36+
uses: actions/cache@v4
37+
id: cache-cargo
38+
with:
39+
path: |
40+
~/.cargo/registry
41+
~/.cargo/bin
42+
~/.cargo/git
43+
key: linux-${{ steps.toolchain.outputs.rustc_hash }}-rust-cov-${{ hashFiles('**/Cargo.lock') }}
44+
45+
# Run tests with all features
46+
- name: Test (cargo test)
47+
uses: actions-rs/cargo@v1
48+
with:
49+
command: test
50+
args: "--workspace"
51+
52+
# Install grcov
53+
- uses: actions-rs/[email protected]
54+
id: coverage
55+
56+
# Upload to Codecov.io
57+
- name: Upload to Codecov.io
58+
uses: codecov/codecov-action@v1
59+
with:
60+
token: ${{ secrets.CODECOV_TOKEN }}
61+
file: ${{ steps.coverage.outputs.report }}

.github/workflows/document.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: 🧪 Document
33
on:
44
push:
55
branches:
6-
- main
6+
- feat/dtt
77
pull_request:
88
branches:
9-
- main
9+
- feat/dtt
10+
release:
11+
types: [created]
1012

1113
jobs:
1214
all:
@@ -43,7 +45,7 @@ jobs:
4345
retention-days: 1
4446

4547
- name: Write CNAME file
46-
run: echo 'doc.dttlib.one' > ./target/doc/CNAME
48+
run: echo 'docs.dttlib.one' > ./target/doc/CNAME
4749

4850
- name: Deploy to GitHub Pages
4951
uses: peaceiris/actions-gh-pages@v4

.github/workflows/format.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 💾 Format
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- feat/dtt
8+
pull_request:
9+
branches:
10+
- feat/dtt
11+
release:
12+
types: [created]
13+
14+
jobs:
15+
all:
16+
name: Format
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: hecrj/setup-rust-action@v2
20+
with:
21+
components: clippy
22+
- uses: actions/checkout@v4
23+
- name: Check format
24+
run: cargo fmt --all -- --check --verbose

0 commit comments

Comments
 (0)