diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml new file mode 100644 index 0000000..ce49fc5 --- /dev/null +++ b/.github/workflows/go_test.yml @@ -0,0 +1,26 @@ +name: Go Build and Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22.0' + + - name: Check out code + uses: actions/checkout@v3 + + - name: Build + run: | + cd ./listener + go build -a -installsuffix cgo -o bin/listener ./src