- Build (main, develop): vet and unit tests, then a linux/amd64 and linux/arm64 image build without pushing - Publish (version branches): same tests, then build and push both platforms - Integration tests (manual): run the testcontainers suite
19 lines
513 B
YAML
19 lines
513 B
YAML
name: Integration Tests
|
|
|
|
on:
|
|
workflow_dispatch: # Manual trigger only
|
|
|
|
jobs:
|
|
integration-test:
|
|
# Needs access to a Docker daemon: the tests start PostgreSQL with testcontainers.
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Generate templ components
|
|
run: go tool templ generate
|
|
- name: Integration tests
|
|
run: go test -tags integration -race -timeout 15m ./...
|