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 diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index f37aa3bd4..372709f82 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: @@ -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,7 +76,7 @@ jobs: - name: Build sbt plugin working-directory: plugins/sbt/graphql-java-codegen-sbt-plugin run: sbt compile publishLocal --debug - + - name: Build sbt test working-directory: plugins/sbt/graphql-java-codegen-sbt-plugin run: sbt scripted 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