Skip to content

Commit 657c50b

Browse files
authored
ci: Check for doc warnings (atsamd-rs#847)
* Check for doc warnings in CI * Rename "format" job to "check"
1 parent cb86179 commit 657c50b

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/check-docs.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Check docs
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout sources
17+
uses: actions/checkout@v4
18+
- name: Install Rust
19+
run: |
20+
rustup set profile minimal
21+
- name: rustdoc
22+
run: |
23+
RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps -F samd21g,dma,async,usb,defmt,rtic
24+
RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps -F samd51j,dma,async,usb,defmt,rtic,can

.github/workflows/rustfmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
format:
13+
check:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout sources

0 commit comments

Comments
 (0)