Skip to content

Commit f263d4a

Browse files
committed
update github actions
1 parent 087dd4a commit f263d4a

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.github/workflows/ci.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2.3.4
13-
- name: Setup Scala with JDK 14
14-
uses: olafurpg/setup-scala@v13
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Scala with JDK 21
15+
uses: actions/setup-java@v3
1516
with:
16-
java-version: "adopt@1.14"
17+
distribution: adopt
18+
java-version: 21
19+
check-latest: true
20+
cache: sbt
21+
1722
- name: Build and Test
1823
run: sbt -v +test

.github/workflows/release.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,18 @@ on:
66

77
jobs:
88
publish:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2.3.4
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
14-
- uses: olafurpg/setup-scala@v13
14+
15+
- uses: actions/setup-java@v3
16+
with:
17+
distribution: corretto
18+
java-version: 21
19+
check-latest: true
20+
cache: sbt
1521
- run: sbt ci-release
1622
env:
1723
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To get started check the documentation on [https://pokeapi.co/docs/v2](https://p
1212
Add the following to your build.sbt:
1313

1414
```scala
15-
libraryDependencies += "io.github.juliano" % "pokeapi-scala_3" % "0.1.0"
15+
libraryDependencies += "io.github.juliano" % "pokeapi-scala_3" % "0.3.0"
1616
```
1717

1818
### `Sttp` backends support
@@ -27,7 +27,7 @@ It's possible to [list / paginate resources](https://pokeapi.co/docs/v2#resource
2727

2828
### Caching
2929

30-
Every response is automatically cached in memory, making all subsequent requests for the same resource pull cached data.
30+
Every response is automatically cached in memory, making all subsequent requests to the same resource pull cached data.
3131

3232
## Examples
3333

0 commit comments

Comments
 (0)