mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2025-12-31 17:00:44 +00:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Test Coverage
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Create Test Media
|
|
run: cd tests; sh create_test_media.sh
|
|
- name: Install grcov
|
|
# You may pin to the exact commit or the version.
|
|
# uses: SierraSoftworks/setup-grcov@4155d44ccefd54010431dbb12bdc4044d3dad6d9
|
|
uses: SierraSoftworks/setup-grcov@v1.0.2
|
|
# with:
|
|
# # The version of grcov to install, or `latest` for the latest version.
|
|
# version: # optional, default is latest
|
|
# # Always use cargo to download and install grcov, bypassing the GitHub releases.
|
|
# use-cargo: # optional, default is false
|
|
# # The GitHub token which will be used to download releases (helps avoid rate limiting)
|
|
# github-token:
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
- name: Codecov
|
|
uses: codecov/codecov-action@v3.1.4
|
|
|