-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1756 from bjaglin/setup-scala
Refactor testing setup
- Loading branch information
Showing
62 changed files
with
655 additions
and
672 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,69 +6,46 @@ on: | |
pull_request: | ||
jobs: | ||
test: | ||
name: ${{ matrix.command }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
command: | ||
- "ci-212" | ||
- "ci-213" | ||
- "ci-3" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v14 | ||
- run: sbt ${{ matrix.command }} | ||
jdk11_212: | ||
name: JDK11/scala_2.12 tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v14 | ||
with: | ||
java-version: [email protected] | ||
- run: sbt ci-212 | ||
jdk11_213: | ||
name: JDK11/scala_2.13 tests | ||
runs-on: ubuntu-latest | ||
os: ["ubuntu"] | ||
jvm: ["8", "11", "17"] | ||
include: | ||
- os: windows | ||
jvm: 17 | ||
name: ${{ matrix.os }} / JDK${{ matrix.jvm }} | ||
runs-on: ${{ matrix.os }}-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v14 | ||
- uses: coursier/setup-action@v1 | ||
with: | ||
java-version: [email protected] | ||
- run: sbt ci-213 | ||
|
||
jdk17_213: | ||
name: JDK17/scala_2.13 tests | ||
jvm: temurin:${{ matrix.jvm }} | ||
- if: ${{ matrix.os != 'windows' }} | ||
run: sbt test | ||
- if: ${{ matrix.os == 'windows' }} | ||
run: sbt testWindows | ||
docs: | ||
name: Compile docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v14 | ||
with: | ||
java-version: 17 | ||
- run: sbt ci-213 | ||
|
||
windows_213: | ||
name: Windows/scala_2.13 tests | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v14 | ||
- run: sbt ci-213-windows | ||
shell: bash | ||
checks: | ||
- uses: coursier/setup-action@v1 | ||
- run: sbt ci-docs | ||
formatting: | ||
name: Scalafmt and Scalafix | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v14 | ||
- uses: coursier/setup-action@v1 | ||
- run: sbt "scalafixAll --check" | ||
- run: ./bin/scalafmt --test | ||
mima: | ||
name: Version Policy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v14 | ||
- run: git fetch --unshallow | ||
with: | ||
fetch-depth: 0 | ||
- uses: coursier/setup-action@v1 | ||
- run: sbt versionPolicyCheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.