fix e2e for sbt.

This commit is contained in:
Florian Meriaux 2022-04-12 11:53:42 +02:00
parent 7df480742f
commit b9d25ecda2
No known key found for this signature in database
GPG key ID: A3F999CB41DB6BE2
66 changed files with 110 additions and 12 deletions

View file

@ -132,12 +132,33 @@ jobs:
java-version: '11'
cache: sbt
- name: Create files to cache
run: sbt update
- name: Check files to cache on macos-latest
if: matrix.os == 'macos-latest'
run: |
sbt update
if [ ! -d ~/.ivy2/cache ]; then
echo "::error::The ~/.ivy2/cache directory does not exist unexpectedly"
if [ ! -d ~/Library/Caches/Coursier ]; then
echo "::error::The ~/Library/Caches/Coursier directory does not exist unexpectedly"
exit 1
fi
- name: Check files to cache on windows-latest
if: matrix.os == 'windows-latest'
run: |
if [ ! -d ~/AppData/Local/Coursier/Cache ]; then
echo "::error::The ~/AppData/Local/Coursier/Cache directory does not exist unexpectedly"
exit 1
fi
- name: Check files to cache on ubuntu-latest
if: matrix.os == 'ubuntu-latest'
run: |
if [ ! -d ~/.cache/coursier ]; then
echo "::error::The ~/.cache/coursier directory does not exist unexpectedly"
exit 1
fi
sbt-restore:
runs-on: ${{ matrix.os }}
defaults: