1515 JDK_JAVA_OPTIONS : -Xms6G -Xmx6G -XX:+UseG1GC --add-exports java.base/sun.nio.ch=ALL-UNNAMED
1616
1717jobs :
18+ scalafmt :
19+ timeout-minutes : 15
20+ runs-on : ubuntu-latest
21+ steps :
22+ 23+ - name : Cache sbt
24+ uses : actions/cache@v4
25+ with :
26+ path : |
27+ ~/.cache/coursier
28+ ~/.sbt
29+ key : ${{ runner.os }}-${{matrix.scala}}-${{matrix.module}}-${{ hashFiles('**/build.sbt') }}
30+
31+ - name : Setup Java
32+ 33+ with :
34+ distribution : temurin
35+ java-version : ' 17'
36+ check-latest : true
37+ - name : Check scalafmt
38+ run : sbt 'scalafmtCheckAll' # https://scalameta.org/scalafmt/docs/installation.html#task-keys
39+
1840 build :
1941 runs-on : ubuntu-latest
2042
@@ -55,17 +77,17 @@ jobs:
5577 name : Build ${{matrix.scala_short_dot}} - ${{matrix.module}}
5678
5779 steps :
58- - uses : actions/checkout@v4.0.0
80+ - uses : actions/checkout@v4.2.2
5981 - name : Cache sbt
60- uses : actions/cache@v3
82+ uses : actions/cache@v4
6183 with :
6284 path : |
6385 ~/.cache/coursier
6486 ~/.sbt
6587 key : ${{ runner.os }}-${{matrix.scala}}-${{matrix.module}}-${{ hashFiles('**/build.sbt') }}
6688
67- - name : Setup Java and Scala
68- uses : actions/setup-java@v3.12 .0
89+ - name : Setup Java
90+ uses : actions/setup-java@v4.5 .0
6991 with :
7092 distribution : temurin
7193 java-version : ' 17'
@@ -86,12 +108,12 @@ jobs:
86108 CI_RELEASE : publishSigned # By default, sbt-ci-release uses the `+publishSigned` which is publishing for all the Scala versions configured, which is not what we want
87109 CI_SNAPSHOT_RELEASE : publish # By default, sbt-ci-release uses the `+publish` which is publishing for all the Scala versions configured, which is not what we want
88110 steps :
89- - uses : actions/checkout@v4.0.0
90- - name : Setup Java and Scala
91- uses : actions/setup-java@v3.12 .0
111+ - uses : actions/checkout@v4.2.2
112+ - name : Setup Java
113+ uses : actions/setup-java@v4.5 .0
92114 with :
93115 distribution : temurin
94- java-version : ' 17 '
116+ java-version : ' 11 '
95117 check-latest : true
96118 - run : |
97119 sbt ++2.12.x -Dquill.scala.version=2.12.x -Dquill.macro.log=false ci-release
@@ -100,5 +122,5 @@ jobs:
100122 env:
101123 PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
102124 PGP_SECRET: ${{ secrets.PGP_SECRET }}
103- SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
104- SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
125+ SONATYPE_PASSWORD: ${{ secrets.GETQUILL_SONATYPE_TOKEN_PASSWORD }}
126+ SONATYPE_USERNAME: ${{ secrets.GETQUILL_SONATYPE_TOKEN_USER }}
0 commit comments