Skip to content

Commit

Permalink
Merge pull request #632 from mzuehlke/github_workflow_maintenance
Browse files Browse the repository at this point in the history
Update github workflows
  • Loading branch information
tgodzik authored Feb 27, 2023
2 parents 5858f9e + 673c4b9 commit 6af3033
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
48 changes: 39 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
java-version: "adopt@1.${{ matrix.java }}"
distribution: temurin
java-version: "${{ matrix.java }}"
cache: sbt
- run: sbt +testsJVM/test plugin/test
env:
GOOGLE_APPLICATION_CREDENTIALS:
Expand All @@ -26,7 +28,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- run: sbt +testsJS/test
env:
GOOGLE_APPLICATION_CREDENTIALS:
Expand All @@ -37,7 +43,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- run: npm install
- run: sbt +testsJS/test
env:
Expand All @@ -49,7 +59,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- run: sbt +testsNative/test
env:
GOOGLE_APPLICATION_CREDENTIALS:
Expand All @@ -60,7 +74,11 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- run: sbt +testsJVM/test
shell: bash
env:
Expand All @@ -72,20 +90,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- run: sbt mimaReportBinaryIssues
scalafmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
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@v3
with:
distribution: temurin
java-version: 8
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@v3
with:
distribution: temurin
java-version: 8
cache: sbt
- run: git fetch --unshallow
- name: Publish ${{ github.ref }}
run: |
Expand Down

0 comments on commit 6af3033

Please sign in to comment.