Create build-and-test.yaml
Build and Test / build-and-test (push) Failing after 16s

This commit is contained in:
wt committed 2025-08-08 21:41:10 +07:00
1 parent 1b6c7211ea
commit dfe39aa9fa
1 file changed
+32
+32
View File
@@ -0,0 +1,32 @@
name: Build and Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24.5"
- name: Tidy and Vendor
run: go mod tidy && go mod vendor
- name: build
run: go build -v ./backend/...
- name: test
run: go test -v ./backend/...