-
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
18 changed files
with
1,451 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,25 @@ | ||
name: Protobuf CI | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "**" | ||
|
||
jobs: | ||
fmt: | ||
name: Format | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7 | ||
- uses: bufbuild/buf-setup-action@35c243d7f2a909b1d4e40399b348a7fdab27d78d # pin@v1.34.0 | ||
with: | ||
version: "1.34.0" | ||
github_token: ${{ github.token }} | ||
|
||
- name: Check Protobuf Format | ||
run: buf format -d --exit-code | ||
|
||
|
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,58 @@ | ||
name: Rust CI | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "**" | ||
|
||
jobs: | ||
fmt: | ||
name: Format | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7 | ||
|
||
- name: Check Rust formatting | ||
run: cargo fmt --check --all | ||
|
||
clippy: | ||
name: Lint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7 | ||
- name: Cache cargo dependencies | ||
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # pin@v2.7.3 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # pin@v3.0.0 | ||
with: | ||
version: "24.1" | ||
|
||
- name: Clippy lints | ||
run: cargo clippy --all --all-features --all-targets --no-deps -- -D warnings | ||
|
||
doc: | ||
name: Docs | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4.1.7 | ||
- name: Cache cargo dependencies | ||
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # pin@v2.7.3 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # pin@v3.0.0 | ||
with: | ||
version: "24.1" | ||
|
||
- name: Cargo Doc | ||
run: cargo doc --all --all-features --no-deps --document-private-items | ||
|
||
cargo-deny: | ||
name: Licensing | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 | ||
|
||
- name: Check licenses and security advisories | ||
uses: EmbarkStudios/cargo-deny-action@3f4a782664881cf5725d0ffd23969fcce89fd868 # pin@v1.6.3 |
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,15 @@ | ||
# Rust stuff | ||
/target | ||
|
||
# Nix stuff | ||
/.direnv | ||
/result | ||
.envrc | ||
|
||
.DS_Store | ||
|
||
# IDE stuff | ||
.idea/ | ||
|
||
# Allow developers to use python pre-commit locally | ||
/.pre-commit-config.yaml |
Oops, something went wrong.