enforce rustfmt and valid doc links in CI

This commit is contained in:
James Wilson
2021-08-12 12:53:14 +01:00
parent 770dd04b57
commit bb25a8c3e2
+8 -1
View File
@@ -9,7 +9,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
@@ -23,6 +22,14 @@ jobs:
working-directory: ./backend
run: cargo test --verbose
- name: Check internal documentation links
working-directory: ./backend
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
- name: Ensure 'cargo fmt' has been used
working-directory: ./backend
run: cargo fmt --all -- --check
- name: Build, release and call telemetry executable
working-directory: ./backend
run: cargo run --bin telemetry_core --release -- --help