skillhub/.github/workflows/backend-tests.yml
XiaoSeS 3b305bbc58 fix(ci): prepare Go before backend integration tests
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
2026-10-21 17:26:19 +08:00

34 lines
876 B
YAML

name: backend-tests
# Backend test suite for pull requests. Testcontainers-based tests need a
# Docker daemon, which the GitHub-hosted runners provide.
on:
pull_request:
push:
branches: ["feat/authoring-*"]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: maven
- name: Set up Go for integration tests
uses: actions/setup-go@v5
with:
go-version-file: github-sync-go/go.mod
cache-dependency-path: github-sync-go/go.mod
- name: Compile Go integration test dependencies
working-directory: github-sync-go
run: go test ./internal/worker -run '^$'
- name: Backend tests
run: cd server && ./mvnw -B test