Skip to content

Commit 1ca5c37

Browse files
committed
More comprehensive CI
1 parent 1d3dadd commit 1ca5c37

3 files changed

Lines changed: 22 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,25 @@ name: Continuous integration
22
on: [push, pull_request]
33

44
jobs:
5-
ci:
5+
tests:
6+
name: Tests
67
runs-on: ubuntu-latest
78
steps:
8-
- uses: actions/checkout@v3
9-
- uses: dtolnay/rust-toolchain@stable
10-
- run: cargo build
11-
- run: cargo test
9+
- uses: actions/checkout@v4
10+
- uses: dtolnay/[email protected]
11+
- uses: Swatinem/rust-cache@v2
12+
- run: cargo test --no-run
13+
- run: cargo test --no-fail-fast
14+
15+
checks:
16+
name: Check clippy, formatting, and documentation
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: dtolnay/[email protected]
21+
with:
22+
components: clippy, rustfmt
23+
- uses: Swatinem/rust-cache@v2
24+
- run: cargo clippy --all-targets --all-features
25+
- run: cargo fmt --check --all
26+
- run: cargo doc --no-deps

src/files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use super::*;
33
/// Writer for a _file specification dictionary_.
44
///
55
/// This struct is created by [`Annotation::file_spec`],
6-
/// [`Reference::file_spec`], [`Rendition::data`], and [`Action::file_spec`].
6+
/// [`Reference::file_spec`], [`MediaClip::data`], and [`Action::file_spec`].
77
pub struct FileSpec<'a> {
88
dict: Dict<'a>,
99
}

src/renditions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ deref!('a, MediaPlayParams<'a> => Dict<'a>, dict);
150150

151151
/// Writer for an _media permissions dictionary_.
152152
///
153-
/// This struct is created by [`Rendition::permissions`].
153+
/// This struct is created by [`MediaClip::permissions`].
154154
pub struct MediaPermissions<'a> {
155155
dict: Dict<'a>,
156156
}

0 commit comments

Comments
 (0)