-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
YML: use setup-java instead of setup-scala
Inspired by scalameta/sbt-scalafmt#242.
- Loading branch information
Showing
2 changed files
with
20 additions
and
10 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 |
---|---|---|
|
@@ -17,19 +17,22 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [[email protected], [email protected]] | ||
java: [ '8', '11' ] | ||
os: [windows-latest, ubuntu-latest] | ||
exclude: | ||
- os: windows-latest | ||
java: [email protected] | ||
java: '8' | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v13 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JVM | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
# https://github.com/dwijnand/sbt-dynver#setup | ||
- run: git fetch --tags --unshallow -f | ||
distribution: 'temurin' | ||
cache: 'sbt' | ||
- run: | ||
# for GitOps tests | ||
git config --global user.email "[email protected]" && git config --global user.name "scalafmt" | ||
|
@@ -41,7 +44,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v13 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: 'sbt' | ||
- run: ./scalafmt --test | ||
- run: yarn install | ||
- run: yarn format-check | ||
|
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