28 lines
420 B
YAML
28 lines
420 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.22'
|
|
|
|
- name: Tidy
|
|
run: go mod tidy
|
|
|
|
- name: Vet
|
|
run: go vet ./...
|
|
|
|
- name: Test
|
|
run: go test ./... -v
|
|
|
|
- name: Build
|
|
run: CGO_ENABLED=0 go build -o main ./cmd/api
|