Skip to content

fix badge (#34)

fix badge (#34) #125

Workflow file for this run

on: [push]
name: CI
jobs:
test:
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: off
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
strategy:
matrix:
go-version: [1.22.x]
services:
postgres:
image: "postgres:12"
env:
POSTGRES_PASSWORD: morph
POSTGRES_DB: morph_test
POSTGRES_USER: morph
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6432:5432
mysql:
image: "mysql:8"
env:
MYSQL_DATABASE: morph_test
MYSQL_USER: morph
MYSQL_PASSWORD: morph
MYSQL_ROOT_PASSWORD: morph # Set health checks to wait until mysql has started
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
ports:
- 3307:3306
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout Code
uses: actions/checkout@v2
with:
path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
- name: Execute Tests
run: | # we run driver and rest tests at the same time
make test