35 lines
591 B
YAML
35 lines
591 B
YAML
name: Backend CI
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, main]
|
|
paths: [backend/**]
|
|
pull_request:
|
|
branches: [develop, main]
|
|
paths: [backend/**]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: backend
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.23"
|
|
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
|
|
- name: Vet
|
|
run: go vet ./...
|
|
|
|
- name: Build
|
|
run: go build ./cmd/server
|
|
|
|
- name: Test
|
|
run: go test ./...
|