Skip to content

Initial code: supporting 'load' and 'diff' commands #60

Initial code: supporting 'load' and 'diff' commands

Initial code: supporting 'load' and 'diff' commands #60

Workflow file for this run

name: Go package
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
# services:
# mysql:
# image: mysql:8.0
# env:
# MYSQL_ALLOW_EMPTY_PASSWORD: true
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: test
# ports:
# - 33306:3306
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
env:
DB_DATABASE: test_db
DB_USER: root
DB_PASSWORD: root
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
- name: Build
run: make build
- name: Lint
run: make lint
- name: Unit test
run: make test
- name: Start local MySQL
run: |
sudo systemctl start mysql
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- name: MySQL Test
run: |
export PATH="$PATH:bin"
script/ci-github.sh