forked from scalameta/scalafmt
-
Notifications
You must be signed in to change notification settings - Fork 0
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
24 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,17 +17,20 @@ 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 | ||
- name: Set up JVM | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: 'sbt' | ||
# https://github.com/dwijnand/sbt-dynver#setup | ||
- run: git fetch --tags --unshallow -f | ||
- run: | ||
|
@@ -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 | ||
|
@@ -76,9 +83,13 @@ jobs: | |
env: ${{ matrix.env }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: olafurpg/setup-scala@v13 | ||
- name: Set up GraalVM | ||
uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: [email protected] | ||
version: 'latest' | ||
java-version: ${{ matrix.java }} | ||
components: 'native-image' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
- if: matrix.libc == 'musl' | ||
name: Install musl bundle | ||
run: | | ||
|
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