Skip to content

Add ifname_to_v6_iface, ifname_to_v4_iface, and ifname_to_iface #50

Add ifname_to_v6_iface, ifname_to_v4_iface, and ifname_to_iface

Add ifname_to_v6_iface, ifname_to_v4_iface, and ifname_to_iface #50

Workflow file for this run

name: coverage
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
pull_request:
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
coverage-report:
name: Generate Coverage for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin
- name: Run Coverage and Generate Report
run: |
mkdir -p coverage
cargo tarpaulin --run-types Doctests --run-types Tests --run-types Lib --out xml --output-dir coverage/${{ matrix.os }} -j 1
continue-on-error: true
- name: Upload Coverage Report as Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}
path: coverage/${{ matrix.os }}/cobertura.xml
upload-codecov:
needs: coverage-report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all coverage reports
uses: actions/download-artifact@v4
with:
path: reports/
- name: List contents of the reports directory
run: ls -a reports
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
directory: reports
fail_ci_if_error: false
slug: ${{ github.repository }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}