Files
Veyra/.github/workflows/check.yml
T
Blizzard bffdb3858b
Checks / verify (push) Failing after 2m37s
feat: 基础框架搭建完毕
2026-10-07 09:27:47 +08:00

36 lines
970 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: go.mod
cache-dependency-path: 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 ./...
- run: test -z "$(gofmt -l cmd internal)"