github.com/bored-engineer/go-launchd@v0.0.0-20230905041514-6aff1185c30f/.github/workflows/test.yml (about) 1 name: Test 2 on: [push] 3 jobs: 4 test: 5 name: go=${{ matrix.version }} cgo=${{ matrix.cgo }} macOS=${{ matrix.macos }} 6 strategy: 7 matrix: 8 version: ["1.20", "1.21"] 9 macos: ["latest", "12", "11"] 10 cgo: ["1", "0"] 11 runs-on: macos-${{ matrix.macos }} 12 steps: 13 - uses: actions/checkout@v3 14 - name: Setup Go 15 uses: actions/setup-go@v4 16 with: 17 cache: false 18 go-version: ${{ matrix.version }} 19 - name: Build 20 run: go build -o /tmp/agent ./example/ 21 env: 22 CGO_ENABLED: ${{ matrix.cgo }} 23 - name: Load LaunchDaemon 24 run: launchctl load ./example/agent.plist 25 - name: Test 26 run: echo "Hello World" | nc -w5 localhost 1337 | grep "Hello World"