1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-25 16:41:00 +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 # Trigger the workflow on push or pull request
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
rustfmt: ci:
runs-on: ubuntu-latest 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
clippy: strategy:
runs-on: ubuntu-latest matrix:
steps: rust:
- uses: actions/checkout@v2 - stable
- name: Install latest nightly - beta
uses: actions-rs/toolchain@v1 - nightly
with:
toolchain: stable steps:
- run: rustup component add clippy - uses: actions/checkout@v2
- uses: actions-rs/cargo@v2 - uses: actions-rs/toolchain@v1
with: with:
command: clippy profile: minimal
# args: -- -D warnings 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: | after_success: |
# this does require a -Z flag for Doctests, which is unstable! # this does require a -Z flag for Doctests, which is unstable!
if [[ "$TRAVIS_RUST_VERSION" == nightly ]]; then 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) bash <(curl -s https://codecov.io/bash)
fi fi

View file

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