Update cr.weaviate.io/semitechnologies/weaviate Docker tag to v1.27.5 #1563
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test backend | |
on: | |
push: | |
jobs: | |
backend-test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: default | |
POSTGRES_PASSWORD: default | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
DATABASE_URL: "postgresql://default:default@localhost:5432/postgres?sslmode=disable" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
cache: true | |
- run: go build ./cmd/backend | |
- run: go run ./cmd/migrate | |
- run: go test ./... |