chore(deps): update sysctl requirement from ~0.4.0 to ~0.5.4 (#128) #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
push: | |
pull_request: | |
jobs: | |
coverage: | |
runs-on: macos-latest | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
box: | |
- fbsd_13_0 | |
- fbsd_12_2 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up vagrant | |
run: vagrant up ${{ matrix.box }} | |
- name: Install coverage prerequisites | |
run: | | |
vagrant ssh ${{ matrix.box }} -- sudo pkg install -y kcov | |
vagrant ssh ${{ matrix.box }} -- sudo cargo install cargo-kcov | |
- name: Build | |
run: vagrant ssh ${{ matrix.box }} -- "cd /vagrant; sudo cargo build" | |
- name: Collect coverage | |
run: | | |
vagrant ssh ${{ matrix.box }} -- "cd /vagrant; sudo cargo kcov -- --verify --exclude-pattern=/home/vagrant/.cargo,/usr/lib,/usr/local/lib,/usr/src/lib/" | |
vagrant ssh ${{ matrix.box }} -- "cd /vagrant/target; tar cf - cov/" | tar xv | |
- uses: codecov/codecov-action@v1 | |
with: | |
fail_ci_if_error: true | |
verbose: true |