Skip to content

Commit 0507217

Browse files
committed
fix: ci
1 parent f74994d commit 0507217

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,6 @@ jobs:
6565
test:
6666
name: Unit Test
6767
runs-on: ubuntu-latest
68-
services:
69-
mysql:
70-
image: mysql:9.0.1
71-
env:
72-
MYSQL_ROOT_PASSWORD: fzu-helper
73-
MYSQL_DATABASE: fzu-helper
74-
MYSQL_USER: fzu-helper
75-
MYSQL_PASSWORD: fzu-helper
76-
ports:
77-
- 3306:3306
78-
options: >-
79-
--health-cmd="mysqladmin ping -h 127.0.0.1 -ufzu-helper -pfzu-helper"
80-
--health-interval=10s
81-
--health-timeout=5s
82-
--health-retries=10
8368
steps:
8469
- name: Checkout
8570
uses: actions/checkout@v7
@@ -92,13 +77,6 @@ jobs:
9277
cache: false
9378
- name: Install dependencies
9479
run: go mod tidy
95-
- name: Initialize test database
96-
run: |
97-
sudo apt-get update
98-
sudo apt-get install -y mysql-client
99-
for file in config/sql/*.sql; do
100-
mysql --protocol=tcp -h 127.0.0.1 -P 3306 -ufzu-helper -pfzu-helper fzu-helper < "$file"
101-
done
10280
- name: Run tests
10381
run: make test # 使用我们自己的测试命令
10482
- name: Check the number of changed lines

0 commit comments

Comments
 (0)