server-test / test (push) Successful in 1m3s
A push trigger that declares tags: stops matching branch pushes, and the paths filter doesn't apply to tag pushes — so the combined workflow could effectively never run. test-server.yml now covers branch pushes touching server/; build-server.yml is tags-only (server-v*). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
22 lines
691 B
YAML
22 lines
691 B
YAML
# Runs the server tests on every branch push touching server/.
|
|
# Release builds live in build-server.yml (server-v* tags) — kept separate
|
|
# because mixing `paths` and `tags` filters under one `push` trigger makes
|
|
# branch pushes stop matching (tags-only semantics).
|
|
|
|
name: server-test
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
paths: ["server/**", ".gitea/workflows/test-server.yml"]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
defaults: { run: { working-directory: server } }
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with: { go-version: "1.26", cache-dependency-path: server/go.mod }
|
|
- run: go vet ./...
|
|
- run: go test ./...
|