[1113] test 경로 수정: k0kubun->sqldef #37
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
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
name: test | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: mysql:8 | |
options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10 | |
ports: | |
- 3306:3306 | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: todo | |
MYSQL_USER: todo | |
MYSQL_PASSWORD: todo | |
steps: | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '>=1.18' | |
- uses: actions/checkout@v3 | |
- run: | | |
go install github.com/sqldef/sqldef/cmd/mysqldef@latest | |
mysqldef -u todo -p todo -h 127.0.0.1 -P 3306 todo < ./_tools/mysql/schema.sql | |
- run: cd ${{ github.workspace }}/chapter18/section72 && go test ./... -coverprofile=coverage.out | |
- name: report coverage | |
uses: k1LoW/octocov-action@v0 |