-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit d88e43b
Showing
10 changed files
with
1,589 additions
and
0 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,17 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
- package-ecosystem: "cargo" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
# Not yet supported. See <https://github.com/dependabot/dependabot-core/issues/4009>. | ||
# versioning-strategy: "increase-if-necessary" | ||
ignore: | ||
- dependency-name: "tokio" | ||
update-types: ["version-update:semver-minor", "version-update:semver-patch"] | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch"] |
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,66 @@ | ||
name: test suite | ||
on: | ||
push: | ||
branches-ignore: | ||
- "gh-readonly-queue/**" | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
test: | ||
name: cargo test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it | ||
with: | ||
toolchain: "1.78" | ||
- run: cargo test --all-targets --all-features | ||
|
||
fmt: | ||
name: cargo fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it | ||
with: | ||
toolchain: "1.78" | ||
components: rustfmt | ||
- run: cargo fmt --all --check | ||
|
||
clippy: | ||
name: cargo clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it | ||
with: | ||
toolchain: "1.78" | ||
components: clippy | ||
- run: cargo clippy --all-targets -- -D warnings | ||
|
||
minimal-dependencies: | ||
name: minimal direct dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master # avoid the tag here to prevent dependabot from updating it | ||
with: | ||
toolchain: "nightly-2024-05-05" | ||
components: clippy | ||
- run: rm Cargo.lock | ||
- run: cargo check -Z direct-minimal-versions | ||
|
||
allgreen: | ||
if: always() | ||
needs: | ||
- test | ||
- fmt | ||
- clippy | ||
- minimal-dependencies | ||
runs-on: Ubuntu-latest | ||
steps: | ||
- name: Decide whether the needed jobs succeeded or failed | ||
uses: re-actors/alls-green@release/v1 | ||
with: | ||
jobs: ${{ toJSON(needs) }} |
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 @@ | ||
/target |
Oops, something went wrong.