lofty-rs/.github/workflows/ci.yml

66 lines
1.5 KiB
YAML
Raw Normal View History

2021-04-23 02:34:34 +00:00
name: CI
on:
push:
2022-02-03 03:12:39 +00:00
paths-ignore:
- 'LICENSE-*'
- '**/*.md'
- '.gitignore'
2022-01-09 00:45:27 +00:00
branches:
- main
2021-04-23 02:34:34 +00:00
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
2021-11-22 10:44:38 +00:00
- run: cargo test --all-features --tests
2021-04-23 02:34:34 +00:00
docs:
name: Docs
runs-on: ubuntu-latest
2021-11-22 10:44:38 +00:00
env:
RUSTDOCFLAGS: -Dwarnings
2021-04-23 02:34:34 +00:00
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
2021-11-26 20:33:28 +00:00
- run: cargo doc --all-features --no-deps
2021-11-22 10:44:38 +00:00
- run: cargo test --all-features --doc
2021-04-23 02:34:34 +00:00
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
2021-04-23 02:42:01 +00:00
- run: cargo clippy --all-features -- -Dclippy::all -Dclippy::pedantic
2021-07-19 16:46:33 +00:00
style:
name: Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
2021-07-19 16:48:55 +00:00
toolchain: nightly
2021-07-19 16:46:33 +00:00
override: true
2021-07-19 16:52:25 +00:00
- run: rustup component add rustfmt
2021-07-19 16:46:33 +00:00
- run: cargo fmt -- --check