Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
juliano committed Feb 19, 2024
1 parent 087dd4a commit f263d4a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 10 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Setup Scala with JDK 14
uses: olafurpg/setup-scala@v13
uses: actions/checkout@v4

- name: Setup Scala with JDK 21
uses: actions/setup-java@v3
with:
java-version: "adopt@1.14"
distribution: adopt
java-version: 21
check-latest: true
cache: sbt

- name: Build and Test
run: sbt -v +test
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ on:

jobs:
publish:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13

- uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 21
check-latest: true
cache: sbt
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To get started check the documentation on [https://pokeapi.co/docs/v2](https://p
Add the following to your build.sbt:

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

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

### Caching

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

## Examples

Expand Down

0 comments on commit f263d4a

Please sign in to comment.