-
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.
- Loading branch information
Showing
7 changed files
with
152 additions
and
14 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,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: cargo | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: weekly |
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,31 @@ | ||
name: Dependencies | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "Cargo.toml" | ||
- "deny.toml" | ||
pull_request: | ||
paths: | ||
- "Cargo.toml" | ||
- "deny.toml" | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
dependencies: | ||
name: Check dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check dependencies | ||
uses: EmbarkStudios/cargo-deny-action@v2 | ||
with: | ||
command-arguments: -D warnings |
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,94 @@ | ||
name: Main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- ".github/dependabot.yml" | ||
- ".gitignore" | ||
- ".rustfmt.toml" | ||
- "deny.toml" | ||
- "LICENSE" | ||
- "README.md" | ||
pull_request: | ||
paths-ignore: | ||
- ".github/dependabot.yml" | ||
- ".gitignore" | ||
- ".rustfmt.toml" | ||
- "deny.toml" | ||
- "LICENSE" | ||
- "README.md" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
format: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache crates | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install Taplo | ||
run: cargo install --locked taplo-cli | ||
|
||
- name: Format | ||
run: | | ||
cargo fmt --all --check | ||
taplo fmt --check | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Instal stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache crates | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Clippy | ||
run: cargo clippy --all-features --benches --tests -- -D warnings | ||
|
||
- name: Rustdoc | ||
run: cargo rustdoc --all-features -- -D warnings | ||
|
||
doctest: | ||
name: Doctest | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Instal stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache crates | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Test doc | ||
run: cargo test --all-features --doc | ||
|
||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Instal stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache crates | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Test | ||
run: cargo test --all-features |
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,4 @@ | ||
reorder_imports = true | ||
imports_granularity = "Crate" | ||
group_imports = "StdExternalCrate" | ||
reorder_modules = true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[bans] | ||
multiple-versions = "deny" | ||
|
||
[licenses] | ||
allow = ["Apache-2.0", "MIT", "Unicode-DFS-2016"] |
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