Skip to content

Commit c5a8ad4

Browse files
committed
split out doc tests
1 parent 9a398bc commit c5a8ad4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ on:
33
push:
44
branches: [main]
55
jobs:
6+
docs:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
# windows and macos are disabled, because we don't do anything target specific
11+
# os: [ubuntu-latest, windows-latest, macOS-latest]
12+
os: [ubuntu-latest]
13+
rust: [nightly]
14+
15+
steps:
16+
- uses: hecrj/setup-rust-action@v1
17+
with:
18+
rust-version: ${{ matrix.rust }}
19+
- uses: actions/checkout@master
20+
- name: Run doc tests
21+
run: cargo +nightly test --verbose --all-features --doc
22+
623
test:
724
runs-on: ${{ matrix.os }}
825
strategy:
@@ -20,4 +37,4 @@ jobs:
2037
rust-version: ${{ matrix.rust }}
2138
- uses: actions/checkout@master
2239
- name: Run tests
23-
run: cargo +nightly test --verbose --no-default-features --features "${{ matrix.features_std }}" --features "${{ matrix.features_nightly }}"
40+
run: cargo +nightly test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}" --features "${{ matrix.features_nightly }}"

0 commit comments

Comments
 (0)