File tree 8 files changed +134
-92
lines changed
8 files changed +134
-92
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Bug Report
3
+ about : Report a bug to help us improve
4
+ title : ' bug: '
5
+ labels : bug
6
+ ---
7
+ ## Bug Description
8
+ <!-- Describe what's not working -->
9
+
10
+ ## Steps to Reproduce
11
+
12
+ 1 .
13
+ 2 .
14
+ 3 .
15
+
16
+ ## Expected vs Actual
17
+ <!-- What did you expect vs what happened? -->
18
+
19
+ ## Environment
20
+
21
+ - OS: <!-- e.g., Ubuntu 22.04 -->
22
+ - Version: <!-- which version you're using -->
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Feature Request
3
+ about : Suggest an idea or enhancement
4
+ title : ' feat: '
5
+ labels : enhancement
6
+ ---
7
+ ## Idea
8
+ <!-- Describe your idea -->
9
+
10
+ ## Why?
11
+ <!-- Why do you think this would be useful? -->
12
+
13
+ ## Additional Details
14
+ <!-- Add any other context here -->
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ labels :
2
+ - name : bug
3
+ color : d73a4a
4
+ description : Something isn't working
5
+
6
+ - name : enhancement
7
+ color : a2eeef
8
+ description : New feature or improvement
Original file line number Diff line number Diff line change
1
+ ## Pull Request
2
+
3
+ ** Type**
4
+
5
+ - [ ] Bug fix (fixes #)
6
+ - [ ] New feature (closes #)
7
+ - [ ] Documentation
8
+ - [ ] Other
9
+
10
+ ** Description**
11
+ <!-- Describe your changes -->
12
+
13
+ ** Testing**
14
+ <!-- How have you tested these changes? -->
15
+
16
+ ** Checklist**
17
+
18
+ - [ ] Tests added/updated
19
+ - [ ] Runs ` make check ` successfully
20
+ - [ ] Documentation updated
21
+ - [ ] Breaking changes documented (if any)
Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ env :
9
+ CARGO_TERM_COLOR : always
10
+
11
+ jobs :
12
+ lint :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+
17
+ - uses : dtolnay/rust-toolchain@stable
18
+ with :
19
+ components : rustfmt, clippy
20
+ targets : wasm32-unknown-unknown
21
+
22
+ - uses : Swatinem/rust-cache@v2
23
+
24
+ - name : Lint
25
+ run : |
26
+ cargo fmt -- --check
27
+ cargo clippy --all-features -- -D warnings
28
+
29
+ test :
30
+ runs-on : ubuntu-latest
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+
34
+ - uses : dtolnay/rust-toolchain@stable
35
+ with :
36
+ toolchain : stable
37
+
38
+ - uses : Swatinem/rust-cache@v2
39
+
40
+ - name : Test
41
+ run : cargo test --all-features
42
+
43
+ build :
44
+ runs-on : ubuntu-latest
45
+ needs : [lint, test]
46
+ steps :
47
+ - uses : actions/checkout@v4
48
+
49
+ - uses : dtolnay/rust-toolchain@stable
50
+
51
+ - uses : Swatinem/rust-cache@v2
52
+
53
+ - name : Build
54
+ run : cargo build --release --all-features
Original file line number Diff line number Diff line change 1
1
name : Publish Crate
2
+
2
3
on :
3
4
push :
4
- branches :
5
- - main
6
5
tags :
7
6
- ' v[0-9]+.[0-9]+.[0-9]+*'
8
7
8
+ env :
9
+ CARGO_TERM_COLOR : always
10
+
9
11
jobs :
10
12
publish :
11
13
runs-on : ubuntu-latest
12
14
steps :
13
15
- uses : actions/checkout@v4
14
16
15
17
- uses : dtolnay/rust-toolchain@stable
16
- with :
17
- components : rustfmt, clippy
18
- targets : wasm32-unknown-unknown
19
18
20
19
- uses : Swatinem/rust-cache@v2
21
20
22
- - name : Lint
21
+ - name : Verify tag version matches Cargo.toml
23
22
run : |
24
- cargo fmt -- --check
25
- cargo clippy --all-features -- -D warnings
23
+ TAG_VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
24
+ CARGO_VERSION=$(cargo pkgid | sed 's/.*#//')
25
+ if [ "$TAG_VERSION" != "$CARGO_VERSION" ]; then
26
+ echo "Tag version ($TAG_VERSION) does not match Cargo.toml version ($CARGO_VERSION)"
27
+ exit 1
28
+ fi
26
29
27
- - name : Test
30
+ - name : Run tests
28
31
run : cargo test --all-features
29
32
30
- - name : Build
31
- run : cargo build --release --all-features
33
+ - name : Verify package
34
+ run : cargo publish --dry-run
32
35
33
36
- name : Publish
34
37
env :
35
38
CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
36
- run : cargo publish --allow-dirty
39
+ run : cargo publish
You can’t perform that action at this time.
0 commit comments