From 4f5491c88f99f387c8b4fae625a945d6b3c0bbe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=A2=83=E8=BF=B7=E7=A6=BB?= Date: Fri, 19 Sep 2025 11:20:35 +0800 Subject: [PATCH 1/4] Update github.yml --- .github/workflows/github.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index f37aa3bd4..f7feda61b 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -16,7 +16,7 @@ jobs: jdk-version: [ 8, 11, 17 ] steps: - uses: actions/checkout@v4 - + - name: Setup Java ${{ matrix.jdk-version }} uses: actions/setup-java@v4 with: @@ -73,7 +73,10 @@ jobs: - name: Build sbt plugin working-directory: plugins/sbt/graphql-java-codegen-sbt-plugin run: sbt compile publishLocal --debug - + + - uses: sbt/setup-sbt@v1 + - uses: coursier/cache-action@v6 + - name: Build sbt test working-directory: plugins/sbt/graphql-java-codegen-sbt-plugin run: sbt scripted From d65f915b78b6877fa79618e22961f221dfb20aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=A2=83=E8=BF=B7=E7=A6=BB?= Date: Fri, 19 Sep 2025 11:22:40 +0800 Subject: [PATCH 2/4] Update release.yml --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64124e7f1..a6f9851a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,10 @@ jobs: with: path: ~/.m2 key: m2 - + + - uses: sbt/setup-sbt@v1 + - uses: coursier/cache-action@v6 + - name: Loading ivy cache uses: actions/cache@v4 with: @@ -220,4 +223,4 @@ jobs: - name: Push release version run: | git push - git push --tags \ No newline at end of file + git push --tags From cbe27d4c89d6995764cfd56329690e96f609d4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=A2=83=E8=BF=B7=E7=A6=BB?= Date: Fri, 19 Sep 2025 11:23:28 +0800 Subject: [PATCH 3/4] Update github.yml --- .github/workflows/github.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index f7feda61b..372709f82 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -34,7 +34,10 @@ jobs: with: path: ~/.m2 key: m2 - + + - uses: sbt/setup-sbt@v1 + - uses: coursier/cache-action@v6 + - name: Loading ivy cache uses: actions/cache@v4 with: @@ -73,9 +76,6 @@ jobs: - name: Build sbt plugin working-directory: plugins/sbt/graphql-java-codegen-sbt-plugin run: sbt compile publishLocal --debug - - - uses: sbt/setup-sbt@v1 - - uses: coursier/cache-action@v6 - name: Build sbt test working-directory: plugins/sbt/graphql-java-codegen-sbt-plugin From 7281c0ee53e32a213643d21b134428a63ad89a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=A6=E5=A2=83=E8=BF=B7=E7=A6=BB?= Date: Fri, 19 Sep 2025 11:25:14 +0800 Subject: [PATCH 4/4] Update check-code-style.yml --- .github/workflows/check-code-style.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-code-style.yml b/.github/workflows/check-code-style.yml index f85cfae1f..b05618ea5 100644 --- a/.github/workflows/check-code-style.yml +++ b/.github/workflows/check-code-style.yml @@ -14,7 +14,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - + + - uses: sbt/setup-sbt@v1 + - uses: coursier/cache-action@v6 + # brew install sbt; cd graphql-java-codegen-sbt-plugin; sbt fmt or sbt check - name: Check Scala Code Style working-directory: plugins/sbt/graphql-java-codegen-sbt-plugin