Skip to content

Commit a602643

Browse files
committed
fix github action workflow
1 parent ab26fba commit a602643

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@ jobs:
6060
--health-timeout 5s
6161
--health-retries 10
6262
63+
steps:
64+
- name: Set up Go 1.x
65+
uses: actions/setup-go@v4
66+
with:
67+
go-version: ${{ matrix.go }}
68+
69+
- name: Check out code into the Go module directory
70+
uses: actions/checkout@v4
71+
72+
- name: go mod pakcage cache
73+
uses: actions/cache@v3
74+
with:
75+
path: ~/go/pkg/mod
76+
key: ${{ runner.os }}-go-${{ matrix.go }}-${{ hashFiles('tests/go.mod') }}
77+
78+
- name: Tests
79+
run: GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True" ./test_all.sh
80+
6381
mariadb:
6482
strategy:
6583
matrix:
@@ -85,7 +103,6 @@ jobs:
85103
--health-timeout 5s
86104
--health-retries 10
87105
88-
89106
steps:
90107
- name: Set up Go 1.x
91108
uses: actions/setup-go@v4

0 commit comments

Comments
 (0)