This commit is contained in:
adria0 2020-01-12 23:43:22 +01:00
parent a40e41a702
commit 37e23e371f
3 changed files with 61 additions and 0 deletions

13
.github/workflows/clippy.yaml vendored Normal file
View File

@ -0,0 +1,13 @@
on: [push]
name: Clippy check
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings

32
.github/workflows/coverage.yaml vendored Normal file
View File

@ -0,0 +1,32 @@
on: [push]
name: Code Coverage
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
- name: Generate coverage report
id: coverage
uses: actions-rs/grcov@v0.1
- name: list all /tmp files
run: ls -la /tmp
- name: Copy generated report
run: cp ${{ steps.coverage.outputs.report }} ${{ github.workspace }}/lcov.info
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lcov.info

16
.github/workflows/rust.yaml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Rust
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose