Skip to content

Commit cb9d374

Browse files
Initial commit
0 parents  commit cb9d374

24 files changed

+3843
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: 'Bug Report: '
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
<!-- A clear and concise description of what the bug is. -->
12+
13+
**To Reproduce**
14+
<!--Steps to reproduce the behavior:-->
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
<!--A clear and concise description of what you expected to happen.-->
22+
23+
**Screenshots**
24+
<!--If applicable, add screenshots to help explain your problem.-->
25+
26+
**Additional context**
27+
<!--Add any other context about the problem here.-->
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Documentation
3+
about: Request documentation
4+
title: 'Needs Documentation: '
5+
labels: 'documentation'
6+
assignees: ''
7+
8+
---
9+
10+
### Description
11+
<!-- Please describe what the documentation is for -->
12+
13+
### Context
14+
<!-- Please describe what happend to make you raise this issue -->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: 'Feature request: '
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
<!--A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]-->
12+
13+
**Describe the solution you'd like**
14+
<!--A clear and concise description of what you want to happen.-->
15+
16+
**Describe alternatives you've considered**
17+
<!--A clear and concise description of any alternative solutions or features you've considered.-->
18+
19+
**Additional context**
20+
<!--Add any other context or screenshots about the feature request here.-->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Question
3+
about: Ask a question
4+
title: 'Question: '
5+
labels: 'question'
6+
assignees: ''
7+
8+
---
9+
10+
### Description
11+
<!-- Please describe or ask your question here -->
12+
13+
### Context
14+
<!-- Please describe what happend to make you write this question -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Description
2+
<!--- Please describe your changes in detail -->
3+
4+
## Motivation and Context
5+
<!--- Why is this change required? What problem does it solve? -->
6+
<!-- Please reference the issue tracking number that this pull request relates to -->
7+
8+
9+
<!-- Which ticket / issue does this pull request close? -->
10+
<!--- eg. "Closes #1" -->
11+
12+
### Checklist
13+
<!--- Please check all the boxes that apply. --->
14+
- [ ] I have run `cargo fmt` and committed style guide.
15+
- [ ] I have run `cargo clippy --fix` and committed changes.
16+
- [ ] I have provided automated tests to verify that these changes are correct.
17+
18+

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'patch/**'
8+
- 'minor/**'
9+
- 'major/**'
10+
- 'feature/**'
11+
- 'fix/**'
12+
- 'hotfix/**'
13+
- 'renovate/**'
14+
pull_request:
15+
branches:
16+
- 'main'
17+
- 'patch/**'
18+
- 'minor/**'
19+
- 'major/**'
20+
- 'feature/**'
21+
- 'fix/**'
22+
- 'hotfix/**'
23+
- 'renovate/**'
24+
25+
jobs:
26+
build:
27+
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Build
33+
run: cargo build --release --verbose
34+
- name: rust-clippy-check
35+
uses: actions-rs/clippy-check@v1.0.7
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
args: --all-targets --all-features -- -D warnings
39+
- name: Run tests
40+
run: cargo test --verbose
41+
# - name: Run cargo-tarpaulin
42+
# uses: actions-rs/tarpaulin@v0.1
43+
# with:
44+
# args: '-- --test-threads 1'
45+
# - name: Upload to codecov.io
46+
# uses: codecov/codecov-action@v1.0.2
47+
# with:
48+
# token: ${{secrets.CODECOV_TOKEN}}
49+
50+
# - name: Archive code coverage results
51+
# uses: actions/upload-artifact@v1
52+
# with:
53+
# name: code-coverage-report
54+
# path: cobertura.xml

.github/workflows/publish.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Build
16+
run: cargo build --release --verbose
17+
- name: rust-clippy-check
18+
uses: actions-rs/clippy-check@v1.0.7
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
args: --all-targets --all-features -- -D warnings
22+
- name: Run tests
23+
run: cargo test --verbose
24+
# - name: Run cargo-tarpaulin
25+
# uses: actions-rs/tarpaulin@v0.1
26+
# with:
27+
# args: '-- --test-threads 1'
28+
# - name: Upload to codecov.io
29+
# uses: codecov/codecov-action@v1.0.2
30+
# with:
31+
# token: ${{secrets.CODECOV_TOKEN}}
32+
33+
# - name: Archive code coverage results
34+
# uses: actions/upload-artifact@v1
35+
# with:
36+
# name: code-coverage-report
37+
# path: cobertura.xml
38+
# publish:
39+
# name: Publish
40+
# needs: build
41+
# runs-on: ubuntu-latest
42+
# if: ( github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' )
43+
# steps:
44+
# - uses: actions/checkout@v2
45+
# - uses: actions-rs/toolchain@v1
46+
# with:
47+
# toolchain: stable
48+
# override: true
49+
# - uses: actions/cache@v2
50+
# with:
51+
# path: |
52+
# ~/.cargo/bin/
53+
# ~/.cargo/registry/index/
54+
# ~/.cargo/registry/cache/
55+
# ~/.cargo/git/db/
56+
# target/
57+
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
58+
# - name: install cargo release
59+
# run: if [ ! -f ~/.cargo/bin/cargo-release ]; then cargo install cargo-release; fi;
60+
# - name: cargo release
61+
# run: |
62+
# git config --global user.name 'Git Hub Actions (rust)'
63+
# git config --global user.email '12231216+github-actions@users.noreply.github.com '
64+
# cargo release patch --execute --no-confirm --token $CARGO_REGISTRY_TOKEN
65+
# env:
66+
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.gitignore

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

0 commit comments

Comments
 (0)