Skip to content

refs #38: refactor adaptor #75

refs #38: refactor adaptor

refs #38: refactor adaptor #75

Workflow file for this run

name: CI
on:
push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Build
run: |
go build -v ./cmd/server
test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql
env:
MYSQL_DATABASE: satellite
MYSQL_USER: satellite
MYSQL_PASSWORD: satellite
MYSQL_ROOT_USER: satellite
MYSQL_ROOT_PASSWORD: satellite
ports:
- "3307:3306"
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Test
env:
MYSQL_DATABASE: satellite
MYSQL_USER: satellite
MYSQL_PASSWORD: satellite
MYSQL_HOST: localhost
MYSQL_PORT: 3307
run: |
go install -tags 'mysql' github.com/golang-migrate/migrate/v4/cmd/migrate@latest
sleep 10
make migrate-up
go test -v ./...