File: code-coverage.yml

package info (click to toggle)
arp-scan 1.10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,128 kB
  • sloc: ansic: 3,256; sh: 1,767; perl: 523; makefile: 42
file content (35 lines) | stat: -rw-r--r-- 920 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: coverage
on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

jobs:
  coverage:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - name: install libpcap and lcov
        run: |
          sudo apt-get update -qq
          sudo apt-get install -qq libpcap0.8-dev libcap-dev lcov
      - name: autoreconf
        run: autoreconf --install
      - name: configure with gcov
        run: ./configure --enable-gcov
      - name: make
        run: make
      - name: make check
        run: make check
      - name: create lcov.info
        run: lcov --directory . --capture --output-file lcov.info
      - name: Coveralls
        uses: coverallsapp/github-action@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          path-to-lcov: ./lcov.info