Update agent.plist #15
This file contains 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] | |
jobs: | |
test: | |
name: go=${{ matrix.version }} cgo=${{ matrix.cgo }} macOS=${{ matrix.macos }} | |
strategy: | |
matrix: | |
version: ["1.20", "1.21"] | |
macos: ["latest", "12", "11"] | |
cgo: ["1", "0"] | |
runs-on: macos-${{ matrix.macos }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
cache: false | |
go-version: ${{ matrix.version }} | |
- name: Build | |
run: go build -o /tmp/agent ./example/ | |
env: | |
CGO_ENABLED: ${{ matrix.cgo }} | |
- name: Load LaunchDaemon | |
run: launchctl load ./example/agent.plist | |
- name: Test IPv4 | |
run: echo "Hello World" | nc -w5 -4 localhost 1337 | grep "Hello World" | |
- name: Test IPv6 | |
run: echo "Hello World" | nc -w5 -6 localhost 1337 | grep "Hello World" |