From 16084d862141ea11f7f74b76d8de6219ba07f437 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Mon, 4 Oct 2021 17:32:39 -0600 Subject: [PATCH] modernize GitHub Actions config somewhat --- .github/workflows/ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22ce012..d5cd5e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI +name: Test on: pull_request: push: @@ -27,16 +27,20 @@ jobs: - os: ubuntu-latest java: 11 jobtype: 1 + - os: ubuntu-latest + java: 17 + jobtype: 1 runs-on: ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v2 - name: Setup - uses: olafurpg/setup-scala@v10 + uses: actions/setup-java@v2 with: - java-version: "adopt@1.${{ matrix.java }}" + distribution: temurin + java-version: ${{matrix.java}} - name: Coursier cache - uses: coursier/cache-action@v5 + uses: coursier/cache-action@v6 - name: Build and test shell: bash run: | @@ -55,8 +59,3 @@ jobs: echo unknown jobtype exit 1 esac - rm -rf "$HOME/.ivy2/local" - find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true - find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true - find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true - find $HOME/.sbt -name "*.lock" -delete || true