Skip to content

Commit

Permalink
More comprehensive CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Jun 1, 2024
1 parent 1d3dadd commit 1ca5c37
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,25 @@ name: Continuous integration
on: [push, pull_request]

jobs:
ci:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo build
- run: cargo test
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- uses: Swatinem/rust-cache@v2
- run: cargo test --no-run
- run: cargo test --no-fail-fast

checks:
name: Check clippy, formatting, and documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features
- run: cargo fmt --check --all
- run: cargo doc --no-deps
2 changes: 1 addition & 1 deletion src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use super::*;
/// Writer for a _file specification dictionary_.
///
/// This struct is created by [`Annotation::file_spec`],
/// [`Reference::file_spec`], [`Rendition::data`], and [`Action::file_spec`].
/// [`Reference::file_spec`], [`MediaClip::data`], and [`Action::file_spec`].
pub struct FileSpec<'a> {
dict: Dict<'a>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/renditions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ deref!('a, MediaPlayParams<'a> => Dict<'a>, dict);

/// Writer for an _media permissions dictionary_.
///
/// This struct is created by [`Rendition::permissions`].
/// This struct is created by [`MediaClip::permissions`].
pub struct MediaPermissions<'a> {
dict: Dict<'a>,
}
Expand Down

0 comments on commit 1ca5c37

Please sign in to comment.