diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 865f3e81e68..da4bb98e221 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -51,4 +51,7 @@ jobs: ${{ runner.os }}-gradle- - name: Gradle Build working-directory: src/backend/ci - run: ./gradlew test clean :boot-assembly:classes -DmavenRepoUrl="http://maven.aliyun.com/nexus/content/groups/public/" + run: | + ./gradlew test clean :boot-assembly:classes \ + -DmavenRepoUrl="http://maven.aliyun.com/nexus/content/groups/public/" \ + -DmysqlURL=127.0.0.1:${{ job.services.mysql.ports['3306'] }} -DmysqlUser=root -DmysqlPasswd=root diff --git a/.github/workflows/publishMavenJar4CI.yml b/.github/workflows/publishMavenJar4CI.yml index 2b2b01790bf..6527894d28f 100644 --- a/.github/workflows/publishMavenJar4CI.yml +++ b/.github/workflows/publishMavenJar4CI.yml @@ -69,7 +69,8 @@ jobs: -Psigning.keyId=${{ secrets.SIGNING_KEY_ID }} \ -Psigning.password='${{ secrets.SIGNING_PASSWORD }}' \ -Psigning.secretKeyRingFile=${{ github.workspace }}/secretKeyRingFile.gpg \ - -DmavenRepoUrl="http://maven.aliyun.com/nexus/content/groups/public/" + -DmavenRepoUrl="http://maven.aliyun.com/nexus/content/groups/public/" \ + -DmysqlURL=127.0.0.1:${{ job.services.mysql.ports['3306'] }} -DmysqlUser=root -DmysqlPasswd=root - name: Clean Up if: ${{ always() }} working-directory: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a80d04edd5e..e6175dc5a5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,7 +87,10 @@ jobs: ${{ runner.os }}-gradle- - name: Gradle Build Backend Service working-directory: src/backend/ci - run: ./gradlew clean test build :core:worker:worker-agent:shadowJar -DmavenRepoUrl="https://maven.aliyun.com/nexus/content/groups/public/" + run: | + ./gradlew clean test build :core:worker:worker-agent:shadowJar \ + -DmavenRepoUrl="https://maven.aliyun.com/nexus/content/groups/public/" \ + -DmysqlURL=127.0.0.1:${{ job.services.mysql.ports['3306'] }} -DmysqlUser=root -DmysqlPasswd=root - name: Gradle Build Turbo Service working-directory: src/backend/turbo