add e2e for sbt.

This commit is contained in:
Florian Meriaux 2022-04-12 08:48:51 +02:00
parent 4e72968b94
commit 7df480742f
No known key found for this signature in database
GPG key ID: A3F999CB41DB6BE2
2 changed files with 58 additions and 1 deletions

View file

@ -111,3 +111,58 @@ jobs:
exit 1
fi
ls ~/.m2/repository
sbt-save:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: __tests__/cache/sbt
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run setup-java with the cache for sbt
uses: ./
id: setup-java
with:
distribution: 'adopt'
java-version: '11'
cache: sbt
- name: Create files to cache
run: |
sbt update
if [ ! -d ~/.ivy2/cache ]; then
echo "::error::The ~/.ivy2/cache directory does not exist unexpectedly"
exit 1
fi
sbt-restore:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: __tests__/cache/sbt
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
needs: sbt-save
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run setup-java with the cache for sbt
uses: ./
id: setup-java
with:
distribution: 'adopt'
java-version: '11'
cache: sbt
- name: Confirm that ~/.ivy2/cache directory has been made
run: |
if [ ! -d ~/.ivy2/cache ]; then
echo "::error::The ~/.ivy2/cache directory does not exist unexpectedly"
exit 1
fi
ls ~/.ivy2/cache

View file

@ -1 +1,3 @@
ThisBuild / scalaVersion := "3.1.1"
libraryDependencies += "org.junit.jupiter" % "junit-jupiter-api" % "5.8.2" % Test