-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update issue templates (#1) * Create test.yml (#2) * Create release.yml (#3) * Update test.yml (#4) * test * error handling (#6) * 7 action cache (#8) * action (#9) * test * test * test * test * test * test * test * test * modified: README.md description
- Loading branch information
1 parent
54720f0
commit 4042523
Showing
12 changed files
with
346 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "[Bug]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior, or a Minimal Reproducible Code Snippet. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Information (please complete the following information):** | ||
OS: [e.g. macOS] | ||
Output of `rustc -V` | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[New Feature]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Rust | ||
|
||
on: | ||
pull_request: | ||
branches: [release] | ||
types: [closed] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Extract version | ||
id: extract-version | ||
run: echo "version=$(grep -oP '^version = "\K[^"]+' Cargo.toml | awk '{$1=$1;print}')" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache restore | ||
uses: actions/cache/restore@v3 | ||
id: cache-cargo-restore | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ steps.extract-version.outputs.version }} | ||
|
||
- name: Run clippy | ||
run: cargo clippy --all-features --all-targets -- -D warnings | ||
- name: Build | ||
run: cargo build | ||
- name: Run tests | ||
run: cargo test | ||
|
||
- name: publish crates | ||
uses: katyo/publish-crates@v2 | ||
with: | ||
# crates.io registry token | ||
registry-token: ${{ secrets.crates_io }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Rust | ||
|
||
on: | ||
pull_request: | ||
branches: [dev] | ||
types: [opened] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Extract version | ||
id: extract-version | ||
run: echo "version=$(grep -oP '^version = "\K[^"]+' Cargo.toml | awk '{$1=$1;print}')" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache restore | ||
uses: actions/cache/restore@v3 | ||
id: cache-cargo-restore | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ steps.extract-version.outputs.version }} | ||
|
||
- name: Run clippy | ||
run: cargo clippy --all-features --all-targets -- -D warnings | ||
- name: Build | ||
run: cargo build | ||
- name: Run tests | ||
run: cargo test | ||
|
||
- name: Cache save | ||
if: steps.cache-cargo-restore.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v3 | ||
id: cache-cargo-save | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ steps.cache-cargo-restore.outputs.cache-primary-key }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "encrypt_config" | ||
version = "0.0.1-alpha1" | ||
authors = ["Louis <[email protected]>"] | ||
description = "A config manager, supporting encryption." | ||
description = "A rust crate to manage, persist and encrypt your configurations." | ||
license = "MIT" | ||
edition = "2021" | ||
repository = "https://github.com/kingwingfly/encrypt-config" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.