33 lines
577 B
YAML
33 lines
577 B
YAML
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: cd backend && go mod tidy && go mod vendor
|
|
|
|
- name: build
|
|
run: cd backend && go build -v ./...
|
|
|
|
- name: test
|
|
run: cd backend && go test -v ./...
|