Skip to content

Commit

Permalink
try custom docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
meiji163 committed Oct 17, 2024
1 parent 18dcee1 commit 299df37
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,25 @@ on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
mysql_version: ["5.7", "8.0"]
services:
mysql:
image: mysql:${{ matrix.mysql_version }}
env:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "test"
TZ: America/Los_Angeles
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
--log-bin=mysql-bin
--binlog-format=row
--gtid-mode=ON
--enforce-gtid-consistency=ON
--binlog-transaction-dependency-tracking=WRITESET
--transaction-write-set-extraction=XXHASH64
steps:
- name: Setup MySQL
run: >-
docker run --rm -d
--name mysql
-p 3306:3306
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
mysql:8.0.39
-e MYSQL_ROOT_PASSWORD=root
-e MYSQL_DATABASE=test
--log-bin=mysql-bin
--binlog-format=row
--gtid-mode=ON
--enforce-gtid-consistency=ON
--transaction-write-set-extraction=XXHASH64
--binlog-transaction-dependency-tracking=WRITESET
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
Expand Down

0 comments on commit 299df37

Please sign in to comment.