1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-05-13 14:02:53 +00:00
This commit is contained in:
Luro02 2020-02-23 18:53:47 +01:00
parent a8c788f4d2
commit 651db2e18b
No known key found for this signature in database
GPG key ID: B66FD4F74501A9CF
3 changed files with 40 additions and 29 deletions

View file

@ -1,33 +1,44 @@
name: Rust
name: rust
# Trigger the workflow on push or pull request
on: [push, pull_request]
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v2
with:
command: fmt
args: --all -- --check
ci:
runs-on: ubuntu-latest
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: rustup component add clippy
- uses: actions-rs/cargo@v2
with:
command: clippy
# args: -- -D warnings
strategy:
matrix:
rust:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

View file

@ -35,6 +35,6 @@ script:
after_success: |
# this does require a -Z flag for Doctests, which is unstable!
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then
cargo tarpaulin --ignore-panics --ignore-tests --run-types Tests Doctests --out Xml
cargo tarpaulin -f --ignore-panics --ignore-tests --run-types Tests Doctests --out Xml
bash <(curl -s https://codecov.io/bash)
fi

View file

@ -40,7 +40,7 @@ vulnerability = "deny"
# The lint level for unmaintained crates
unmaintained = "warn"
# The lint level for crates that have been yanked from their source registry
yanked = "warn"
# yanked = "warn"
# The lint level for crates with security notices. Note that as of
# 2019-12-17 there are no security notice advisories in
# https://github.com/rustsec/advisory-db