From 3933e8cf9419df3f631cbc8d69f7417c374fd7b4 Mon Sep 17 00:00:00 2001 From: 4spera <91380691+TochusC@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:16:04 +0800 Subject: [PATCH] Update and rename go.yml to build_test.yml --- .github/workflows/{go.yml => build_test.yml} | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename .github/workflows/{go.yml => build_test.yml} (78%) diff --git a/.github/workflows/go.yml b/.github/workflows/build_test.yml similarity index 78% rename from .github/workflows/go.yml rename to .github/workflows/build_test.yml index 6092f4a..97d03dc 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/build_test.yml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Go +name: build_test on: push: @@ -12,15 +12,21 @@ on: jobs: build: + name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - + - name: Set up Go uses: actions/setup-go@v4 with: go-version: '1.23' + - name: Get dependencies + run: | + sudo apt install -y libpcap-dev + go get -v + - name: Build run: go build -v ./...