Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YML: use setup-java instead of setup-scala #3404

Merged
merged 1 commit into from
Dec 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [adopt@1.8, adopt@1.11]
java: [ '8', '11' ]
os: [windows-latest, ubuntu-latest]
exclude:
- os: windows-latest
java: adopt@1.8
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 "scalafmt@scalameta.org" && git config --global user.name "scalafmt"
Expand All @@ -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
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: olafurpg/setup-gpg@v3
# https://github.com/dwijnand/sbt-dynver#setup
- run: git fetch --tags --unshallow -f
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
- name: Publish ${{ github.ref }}
run: sbt ci-release docs/docusaurusPublishGhpages
env:
Expand Down