-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from gattaca-com/bugfixes_and_cleanups
Bugfixes and cleanups
- Loading branch information
Showing
97 changed files
with
2,892 additions
and
1,857 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
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,59 @@ | ||
name: Rust Linting | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, develop ] | ||
types: [opened, synchronize, reopened] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
path: ./repos/${{ secrets.REPO_NAME }} | ||
ref: ${{ github.ref }} | ||
|
||
# Install Protocol Buffers Compiler | ||
- name: Install Protobuf Compiler (protoc) | ||
run: sudo apt-get install -y protobuf-compiler | ||
|
||
- name: Change to project directory | ||
run: cd ./repos/${{ secrets.REPO_NAME }} | ||
|
||
# Install nightly toolchain and rustfmt | ||
- name: Install nightly toolchain and rustfmt | ||
run: | | ||
rustup toolchain install nightly | ||
rustup component add rustfmt --toolchain nightly | ||
# Rust Linting with Clippy | ||
- uses: dtolnay/rust-toolchain@clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
|
||
# Run General Clippy Linting | ||
- name: Clippy | ||
run: cargo clippy --all-features | ||
env: | ||
RUSTFLAGS: -D warnings | ||
working-directory: ./repos/${{ secrets.REPO_NAME }} | ||
|
||
# Check Code Formatting | ||
- name: Rustfmt | ||
run: cargo +nightly fmt --all --check | ||
working-directory: ./repos/${{ secrets.REPO_NAME }} | ||
|
||
# Check Documentation | ||
- name: Docs | ||
run: cargo doc --workspace --all-features --no-deps | ||
env: | ||
RUSTDOCFLAGS: --cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page -Zunstable-options -D warnings | ||
working-directory: ./repos/${{ secrets.REPO_NAME }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.