This commit is contained in:
1 parent
1b6c7211ea
commit
dfe39aa9fa
1 file changed
+32
@@ -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/...
|
||||
Reference in new issue
Block a user