From 8b8325252469928e42d4c5ec4bc3e99191bad0f9 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Mon, 27 Jun 2022 18:56:49 +0200 Subject: [PATCH] use coursier/setup-action Github Actions (#1186) * use setup-java on Github Actions * use sbt cache * try coursier instead --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/release.yml | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a57ba1374..2363d0604 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,10 @@ jobs: steps: - uses: actions/checkout@v1 - run: git fetch --depth=1 origin '+refs/tags/*:refs/tags/*' - - uses: olafurpg/setup-scala@v10 + - uses: coursier/cache-action@v6 + - uses: coursier/setup-action@v1 with: - java-version: adopt@1.8.0-292 + jvm: adopt:8 + apps: sbt - name: Test run: sbt -v ";+core/test;+instrumentation/test;+reporters/test" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a0d33432..0c8cdd04d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,11 @@ jobs: steps: - uses: actions/checkout@v1 - run: git fetch --depth=1 origin '+refs/tags/*:refs/tags/*' - - uses: olafurpg/setup-scala@v10 + - uses: coursier/cache-action@v6 + - uses: coursier/setup-action@v1 + with: + jvm: adopt:8 + apps: sbt - name: Release run: sbt ";+instrumentation/publishLocal; release" shell: bash