Skip to content

Commit fd102cf

Browse files
committed
set MySQL port on Github Action
1 parent fb8d6e8 commit fd102cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/dub.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,7 @@ jobs:
158158

159159
- name: Run Example (MySQL 5.7)
160160
working-directory: ./examples/homePage
161+
env:
162+
PORT: ${{ job.services.mysql.ports[3306] }}
161163
run: |
162-
./example "host=localhost;port=3306;user=testuser;pwd=passw0rd;db=testdb"
164+
./example "host=localhost;port=$PORT;user=testuser;pwd=passw0rd;db=testdb"

0 commit comments

Comments
 (0)