Skip to content

Commit 649f400

Browse files
committed
fix scala tests
1 parent 35e5f94 commit 649f400

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,17 +257,18 @@ jobs:
257257
with:
258258
scala-version: '3.3.1'
259259

260+
- name: Setup Coursier
261+
uses: coursier/setup-action@v1
262+
with:
263+
apps: scala scalac
264+
260265
- name: Install matching Scala toolchain
261266
run: |
262-
if ! command -v cs >/dev/null 2>&1; then
263-
echo "coursier (cs) is required to provision a matching Scala runtime/compiler pair" >&2
264-
exit 1
265-
fi
266267
mkdir -p "$HOME/.local/bin"
268+
export PATH="$HOME/.local/bin:$HOME/.local/share/coursier/bin:$PATH"
267269
cs install --install-dir "$HOME/.local/bin" scala scalac
268270
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
269271
echo "$HOME/.local/share/coursier/bin" >> "$GITHUB_PATH"
270-
export PATH="$HOME/.local/bin:$HOME/.local/share/coursier/bin:$PATH"
271272
command -v scalac
272273
command -v scala
273274
scalac -version

0 commit comments

Comments
 (0)