Skip to content

Commit b8c6247

Browse files
build: use global action step (#949)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4bab889 commit b8c6247

File tree

9 files changed

+34
-5
lines changed

9 files changed

+34
-5
lines changed

.github/workflows/checks.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
with:
4242
jvm: temurin:1.11.0
4343

44+
- name: Run akka/github-actions-scripts
45+
uses: akka/github-actions-scripts/setup_global_resolver@main
46+
4447
- name: Code style check and binary-compatibility check
4548
# Run locally with: sbt 'verifyCodeStyle ; mimaReportBinaryIssues'
4649
run: sbt "; verifyCodeStyle; mimaReportBinaryIssues"
@@ -74,6 +77,9 @@ jobs:
7477
with:
7578
jvm: temurin:1.11.0
7679

80+
- name: Run akka/github-actions-scripts
81+
uses: akka/github-actions-scripts/setup_global_resolver@main
82+
7783
- name: Compile all code with fatal warnings for Java 11 and Scala 2.13
7884
# Run locally with: sbt 'clean ; +Test/compile ; +It/compile'
7985
run: sbt "; Test/compile"
@@ -110,5 +116,8 @@ jobs:
110116
with:
111117
jvm: temurin:1.11.0
112118

119+
- name: Run akka/github-actions-scripts
120+
uses: akka/github-actions-scripts/setup_global_resolver@main
121+
113122
- name: Create all API docs for artifacts/website and all reference docs
114123
run: sbt docs/paradox

.github/workflows/fossa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
with:
3535
jvm: temurin:1.11.0
3636

37+
- name: Run akka/github-actions-scripts
38+
uses: akka/github-actions-scripts/setup_global_resolver@main
39+
3740
- name: FOSSA policy check
3841
run: |-
3942
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash

.github/workflows/link-validator.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
jvm: temurin:1.25
4040
apps: cs
4141

42+
- name: Run akka/github-actions-scripts
43+
uses: akka/github-actions-scripts/setup_global_resolver@main
44+
4245
- name: sbt site
4346
run: sbt docs/makeSite
4447

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
with:
4646
jvm: temurin:1.11.0.17
4747

48+
- name: Run akka/github-actions-scripts
49+
uses: akka/github-actions-scripts/setup_global_resolver@main
50+
4851
- name: Publish artifacts for all Scala versions
4952
env:
5053
PGP_SECRET: ${{ secrets.PGP_SECRET }}
@@ -73,6 +76,9 @@ jobs:
7376
with:
7477
jvm: temurin:1.25
7578

79+
- name: Run akka/github-actions-scripts
80+
uses: akka/github-actions-scripts/setup_global_resolver@main
81+
7682
- name: Publish
7783
run: |-
7884
eval "$(ssh-agent -s)"

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
with:
6666
jvm: temurin:1.11.0
6767

68+
- name: Run akka/github-actions-scripts
69+
uses: akka/github-actions-scripts/setup_global_resolver@main
70+
6871
- name: Start DB in docker container
6972
if: ${{ matrix.db.script }}
7073
run: |-

.github/workflows/weekly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ jobs:
6565
with:
6666
jvm: ${{ matrix.db.jdk }}
6767

68+
- name: Run akka/github-actions-scripts
69+
uses: akka/github-actions-scripts/setup_global_resolver@main
70+
6871
- name: Start DB in docker container
6972
if: ${{ matrix.db.script }}
7073
run: |-

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ for [Scala](https://doc.akka.io/libraries/akka-persistence-jdbc/current/?languag
2929
The current versions of all Akka libraries are listed on the [Akka Dependencies](https://doc.akka.io/libraries/akka-dependencies/current/) page. Releases of the Akka JDBC plugin in this repository are listed on the [GitHub releases](https://github.com/akka/akka-persistence-jdbc/releases) page.
3030

3131

32+
## Build Token
33+
34+
To build locally, you need to fetch a token at https://account.akka.io/token that you have to place into `~/.sbt/1.0/akka-commercial.sbt` file like this:
35+
```
36+
ThisBuild / resolvers += "lightbend-akka".at("your token resolver here")
37+
```
38+
3239
## Contributing
3340

3441
Contributions are *very* welcome! The Akka team appreciates community contributions by both those new to Akka and those more experienced.

build.sbt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import com.lightbend.paradox.apidoc.ApidocPlugin.autoImport.apidocRootPackage
22
import com.geirsson.CiReleasePlugin
33

4-
ThisBuild / resolvers += "Akka library repository".at("https://repo.akka.io/maven/github_actions")
5-
64
lazy val `akka-persistence-jdbc` = project
75
.in(file("."))
86
.enablePlugins(ScalaUnidocPlugin)

project/plugins.sbt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// for sbt-paradox-akka
2-
resolvers += "Akka library repository".at("https://repo.akka.io/maven/github_actions")
3-
41
// compliance
52
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0")
63
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")

0 commit comments

Comments
 (0)