Skip to content

updated docker-compose #538

updated docker-compose

updated docker-compose #538

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# Label of the container job
runner-job:
runs-on: self-hosted
# Service containers to run with `runner-job`
services:
minio:
image: fclairamb/minio-github-actions
ports:
- 9000:9000
env:
MINIO_DOMAIN: localhost
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: rFcLGNkgsNtksg6Pgtn9CumL4xXBQ7
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.4
- name: Build
run: make
- name: Test
run: TZ=Europe/Stockholm make github_test
env:
AWS_S3_ENDPOINT: localhost:9000
AWS_S3_ACCESSKEY: minioadmin
AWS_S3_SECRETKEY: minioadmin
AWS_S3_TLS: false
AWS_S3_SKIPVERIFY: false
AWS_S3_BUCKET: test