Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoerdsimons committed Oct 26, 2024
0 parents commit d88e43b
Show file tree
Hide file tree
Showing 10 changed files with 1,589 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/dependabot.yml
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"]
66 changes: 66 additions & 0 deletions .github/workflows/ci.yml
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) }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit d88e43b

Please sign in to comment.