diff options
author | Franck Cuny <franck@fcuny.net> | 2021-03-29 20:02:57 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-13 17:20:37 -0700 |
commit | b78f43806ca18f62d62bd3af9f62c053a6837a07 (patch) | |
tree | 954c4ea08ac894dcb025d07d7bcb4bf77100a15b /users/fcuny/exp/buckit/.github/workflows | |
parent | add stub commands for buckit (diff) | |
download | world-b78f43806ca18f62d62bd3af9f62c053a6837a07.tar.gz |
github: add workflow configuration
Let's ensure we test and build a binary when pushing to main and when we create a pull-request.
Diffstat (limited to 'users/fcuny/exp/buckit/.github/workflows')
-rw-r--r-- | users/fcuny/exp/buckit/.github/workflows/go.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/users/fcuny/exp/buckit/.github/workflows/go.yml b/users/fcuny/exp/buckit/.github/workflows/go.yml new file mode 100644 index 0000000..2c17a17 --- /dev/null +++ b/users/fcuny/exp/buckit/.github/workflows/go.yml @@ -0,0 +1,38 @@ +name: go + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: ^1.16 + id: go + + - name: Install libpcap-dev + run: sudo apt-get install libpcap-dev + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Go fmt + run: go fmt ./... + + - name: Go vet + run: go vet ./... + + - name: Test + run: go test -race -v ./... + + - name: Build + run: go build -v ./cmd/... |