Skip to content

Commit 3ec3135

Browse files
committed
build branch only with PR
1 parent ffa4c29 commit 3ec3135

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Java CI with Maven
22

33
on:
44
push:
5-
branches: "*"
5+
branches: "main"
66
pull_request:
77
branches: "*"
88

@@ -84,7 +84,7 @@ jobs:
8484
MYSQL_USER: sa
8585
MYSQL_ROOT_PASSWORD: veryStrong123
8686
MYSQL_PASSWORD: veryStrong123
87-
MYSQL_DATABASE: testdb
87+
MYSQL_DATABASE: testdb
8888
ports:
8989
- 3306:3306
9090
steps:
@@ -108,6 +108,7 @@ jobs:
108108
MYSQL_USER: sa
109109
MYSQL_ROOT_PASSWORD: veryStrong123
110110
MYSQL_PASSWORD: veryStrong123
111+
MYSQL_DATABASE: testdb
111112
ports:
112113
- 3306:3306
113114
steps:
@@ -152,7 +153,7 @@ jobs:
152153

153154
maven-deploy:
154155
runs-on: ubuntu-latest
155-
needs: [build, test-mssql, test-postgres, test-mariadb]
156+
needs: [build, test-mssql, test-postgres, test-mariadb, test-mysql]
156157
if: ${{ github.ref == 'refs/heads/main' }}
157158
steps:
158159
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)