feat(docs): add docs and github actions #362
This file contains hidden or 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: Code Coverage | |
| on: [push] | |
| jobs: | |
| cover: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| - name: Install libpcap | |
| run: | | |
| sudo apt update | |
| sudo apt install -y libpcap-dev | |
| - name: Setup toolchain | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Run cargo-tarpaulin | |
| uses: actions-rs/[email protected] | |
| with: | |
| version: "0.18.0" | |
| args: --features raw --workspace | |
| - name: Upload to codecov.io | |
| uses: codecov/[email protected] | |
| with: | |
| token: ${{secrets.CODECOV_TOKEN}} | |
| - name: Archive code coverage results | |
| uses: actions/upload-artifact@v1 | |
| with: | |
| name: code-coverage-report | |
| path: cobertura.xml |