38 lines
785 B
YAML
38 lines
785 B
YAML
name: Backend API CI
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "veza-backend-api/**"
|
|
- ".github/workflows/backend-ci.yml"
|
|
pull_request:
|
|
paths:
|
|
- "veza-backend-api/**"
|
|
- ".github/workflows/backend-ci.yml"
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: veza-backend-api
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.22"
|
|
cache: true
|
|
|
|
- name: Download deps
|
|
run: go mod download
|
|
|
|
- name: Run govulncheck
|
|
run: go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./... || true
|
|
|
|
- name: Run tests
|
|
run: go test ./internal/handlers/... ./internal/services/... -short
|
|
|