Option to show used IP source address in output #709
Workflow file for this run
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: Test | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| Test-Linux: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-24.04] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install libcap2-bin libtest-command-perl lcov | |
| sudo sysctl net.ipv4.ping_group_range='0 2147483647' | |
| - name: Build | |
| run: | | |
| ci/build-1-autotools.sh | |
| ci/build-4-compile.sh | |
| ci/test-tarball.sh | |
| - name: Test | |
| run: | | |
| set -ex | |
| PATH=`pwd`/src:$PATH | |
| # avoid pinging internet hosts because it doesn't | |
| # work with GitHub Actions being hosted in Azure. | |
| prove $(ls ci/test-*.pl|grep -v internet-hosts) | |
| ci/run-lcov.sh | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: lcov.info | |
| flag-name: ${{ matrix.os }} | |
| parallel: true | |
| - name: Upload fping binary | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: fping-binary-${{ matrix.os }}-${{ github.sha }} | |
| path: src/fping | |
| Test-Asymmetric-Routing: | |
| needs: [Test-Linux] | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-24.04] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Download fping binary from Test-Linux | |
| id: download | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: fping-binary-${{ matrix.os }}-${{ github.sha }} | |
| path: src/ | |
| continue-on-error: true | |
| - name: Fallback - Build fping if download failed | |
| if: steps.download.outcome == 'failure' | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y libcap2-bin libtest-command-perl | |
| ci/build-1-autotools.sh | |
| ci/build-4-compile.sh | |
| - name: Make fping executable | |
| run: chmod +x src/fping | |
| - name: Install tcpdump and net-tools | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install -y tcpdump net-tools | |
| - name: Test asymmetric routing (--oiface) | |
| run: sudo ci/test-oiface.sh | |
| Test-Mac: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| brew install automake lcov | |
| ci/build-2-test-command.sh | |
| ci/build-3-prepare-macos.sh | |
| - name: Build | |
| run: | | |
| ci/build-4-compile.sh | |
| - name: Test | |
| run: | | |
| set -ex | |
| PATH=`pwd`/src:$PATH | |
| export SKIP_IPV6=1 | |
| prove $(ls ci/test-*.pl|grep -v internet-hosts) | |
| ci/run-lcov.sh | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: lcov.info | |
| flag-name: macos | |
| parallel: true | |
| Coveralls-Finish: | |
| needs: [Test-Linux, Test-Mac] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel-finished: true | |
| Release-Tarball: | |
| needs: [Test-Linux, Test-Mac] | |
| if: ${{ github.event_name == 'push' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update -qq | |
| sudo apt-get install libcap2-bin libtest-command-perl | |
| - name: Build | |
| run: | | |
| ci/build-1-autotools.sh | |
| ci/build-4-compile.sh | |
| ci/test-tarball.sh | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: dist-${{ github.sha }} | |
| path: fping-*.tar.gz |