Skip to content

Commit

Permalink
Switch to setup-java action
Browse files Browse the repository at this point in the history
  • Loading branch information
2m committed Dec 2, 2023
1 parent 377eadb commit 775f924
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: laughedelic/coursier-setup@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
jvm: adopt:14
apps: sbtn
- run: sbtn scalafixAll --check
- run: sbtn scalafmtCheckAll
- run: sbtn scalafmtSbtCheck
- run: sbtn headerCheckAll
distribution: temurin
java-version: 17
cache: sbt

- run: sbt --client scalafixAll --check
- run: sbt --client scalafmtCheckAll
- run: sbt --client scalafmtSbtCheck
- run: sbt --client headerCheckAll
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3

Expand All @@ -33,11 +34,12 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: laughedelic/coursier-setup@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
jvm: adopt:14
apps: sbtn
- run: sbtn +compile
- run: sbtn +test
distribution: temurin
java-version: 17
cache: sbt

- run: sbt --client +compile
- run: sbt --client +test
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13

- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: sbt

- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
Expand Down

0 comments on commit 775f924

Please sign in to comment.