Files
Veyra/.github/workflows/check.yml
T
Blizzard ba6dfffab7
Checks / verify (push) Canceled after 41s
init: initial commit
2026-10-06 11:24:02 +08:00

36 lines
1009 B
YAML

name: Checks
on: [push, pull_request]
jobs:
verify:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: veyra_test
POSTGRES_PASSWORD: test_only
POSTGRES_DB: veyra_test
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U veyra_test"
--health-interval 5s
--health-timeout 5s
--health-retries 10
env:
VEYRA_TEST_DATABASE_URL: postgres://veyra_test:test_only@127.0.0.1:5432/veyra_test?sslmode=disable
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: services/api/go.mod
cache-dependency-path: services/api/go.sum
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: make build
- run: make test
- run: go vet ./services/api/...
- run: test -z "$(gofmt -l services/api)"