You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-12 17:20:14 +02:00
Generate PR suggestions when formatting is wrong
This should make it much easier to do drive-by changes in the GitHub editor: the comment should contain a diff that can be committed directly from the online editor.
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -21,14 +21,21 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install gettext yapf3
|
sudo apt install gettext yapf3
|
||||||
|
curl -fsSL https://dprint.dev/install.sh | sh
|
||||||
|
echo "/home/runner/.dprint/bin" >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Install nightly rustfmt
|
- name: Install nightly rustfmt
|
||||||
run: |
|
run: |
|
||||||
rustup default nightly
|
rustup default nightly
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Reformat
|
||||||
uses: dprint/check@v2.2
|
run: dprint fmt
|
||||||
|
|
||||||
|
- uses: parkerbxyz/suggest-changes@v1
|
||||||
|
|
||||||
|
- name: Check if there were any changes
|
||||||
|
run: git diff --exit-code
|
||||||
|
|
||||||
typos:
|
typos:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -43,12 +43,13 @@ Articles and blog posts from around the web which cover Comprehensive Rust:
|
|||||||
_[In Search of Rust Developers, Companies Turn to In-House Training](https://www.darkreading.com/application-security/google-microsoft-take-refuge-in-rust-languages-better-security)_.
|
_[In Search of Rust Developers, Companies Turn to In-House Training](https://www.darkreading.com/application-security/google-microsoft-take-refuge-in-rust-languages-better-security)_.
|
||||||
About how Microsoft, Google, and others are training people in Rust.
|
About how Microsoft, Google, and others are training people in Rust.
|
||||||
|
|
||||||
## Building
|
Building
|
||||||
|
--------
|
||||||
|
|
||||||
The course is built using a few tools:
|
The course is built using a few tools:
|
||||||
|
|
||||||
- [mdbook](https://github.com/rust-lang/mdBook)
|
* [mdbook](https://github.com/rust-lang/mdBook)
|
||||||
- [mdbook-svgbob](https://github.com/boozook/mdbook-svgbob)
|
* [mdbook-svgbob](https://github.com/boozook/mdbook-svgbob)
|
||||||
- [mdbook-i18n-helpers and i18n-report](https://github.com/google/mdbook-i18n-helpers)
|
- [mdbook-i18n-helpers and i18n-report](https://github.com/google/mdbook-i18n-helpers)
|
||||||
- [mdbook-exerciser](mdbook-exerciser/)
|
- [mdbook-exerciser](mdbook-exerciser/)
|
||||||
- [mdbook-course](mdbook-course/)
|
- [mdbook-course](mdbook-course/)
|
||||||
|
Reference in New Issue
Block a user