diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/test.yml | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46807e7..c94bcf2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,6 @@ jobs: - uses: actions-rs/cargo@v1 with: command: check - test: name: Test Suite runs-on: ubuntu-latest @@ -29,10 +28,7 @@ jobs: profile: minimal toolchain: stable override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features + - run: cargo test --all-features fmt: name: Rustfmt @@ -45,10 +41,7 @@ jobs: toolchain: stable override: true - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: cargo fmt --all -- --check clippy: name: Clippy @@ -61,7 +54,21 @@ jobs: toolchain: stable override: true - run: rustup component add clippy - - uses: actions-rs/cargo@v1 + - run: cargo clippy -- -D warnings + + rustdoc: + name: rustdoc + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 with: - command: clippy - args: -- -D warnings + profile: minimal + toolchain: stable + override: true + + # assert cargo doc succeeds + - run: cargo doc + + # assert there are no warnings + - run: '[ -z "$(cargo doc || grep warning)" ]' |