From ad201e55034299539e2fbc0ee3e00088e2cc495e Mon Sep 17 00:00:00 2001 From: gogacoder Date: Sun, 9 Mar 2025 15:44:12 +0700 Subject: [PATCH] feat: github workflow --- .github/workflows/build.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..e943c4a --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,28 @@ +name: Go Build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22.12' + + - name: Install dependencies + run: go mod tidy + + - name: Build + run: go build -v ./...