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

Improve JDK's and sbt's setup process in test.yml #86

Open
yutaro-sakamoto opened this issue Aug 28, 2024 · 0 comments
Open

Improve JDK's and sbt's setup process in test.yml #86

yutaro-sakamoto opened this issue Aug 28, 2024 · 0 comments

Comments

@yutaro-sakamoto
Copy link
Contributor

# Setup JDK
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
# Setup JDK
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11

The above code should be improved. For instance,

# Setup JDK
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
# Setup sbt
- name: Setup sbt
run: |
curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && echo Y | ./cs setup
echo PATH="$PATH:/home/runner/.local/share/coursier/bin" >> "$GITHUB_ENV"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant