Skip to content

Commit

Permalink
update github workflows:
Browse files Browse the repository at this point in the history
* olafurpg/setup got deprecated in v14
  * replaced by actions/setup-java@3
  * enabled sbt caching
* olafurpg/setup-gpg is no longer required since sbt-ci-release v1.5.5
  • Loading branch information
mzuehlke committed Feb 27, 2023
1 parent 5858f9e commit 2086a22
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11 deletions.
49 changes: 40 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ jobs:
fail-fast: false
matrix:
java: [11, 8]
distribution: [adopt]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
java-version: "adopt@1.${{ matrix.java }}"
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java }}"
cache: sbt
- run: sbt +testsJVM/test plugin/test
env:
GOOGLE_APPLICATION_CREDENTIALS:
Expand All @@ -26,7 +29,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: sbt +testsJS/test
env:
GOOGLE_APPLICATION_CREDENTIALS:
Expand All @@ -37,7 +44,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: npm install
- run: sbt +testsJS/test
env:
Expand All @@ -49,7 +60,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: sbt +testsNative/test
env:
GOOGLE_APPLICATION_CREDENTIALS:
Expand All @@ -60,7 +75,11 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: sbt +testsJVM/test
shell: bash
env:
Expand All @@ -72,20 +91,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: sbt mimaReportBinaryIssues
scalafmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: ./bin/scalafmt --check
docs:
name: Scalafix and Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: sbt scalafixCheckAll
- run: sbt docs/docusaurusCreateSite
env:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: olafurpg/setup-gpg@v3
- uses: actions/setup-java@3
with:
distribution: 8
java-version: adopt
cache: sbt
- run: git fetch --unshallow
- name: Publish ${{ github.ref }}
run: |
Expand Down

0 comments on commit 2086a22

Please sign in to comment.