fix(ci): enable ICMP tests on Linux and fix gotestfmt on macOS/Windows #1512
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
| on: [push, pull_request] | |
| name: Check | |
| jobs: | |
| check: | |
| strategy: | |
| matrix: | |
| go-version: [1.22.x] | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Allow unprivileged ICMP (Linux) | |
| if: runner.os == 'Linux' | |
| run: sudo sysctl -w net.ipv4.ping_group_range="0 2147483647" | |
| - name: Test | |
| run: make test |