-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (34 loc) · 1.14 KB
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test All
on: [pull_request]
jobs:
test-all:
runs-on: ${{matrix.OS}}
strategy:
fail-fast: false
matrix:
OS: [ubuntu-22.04, windows-2022]
scala: [2.12.18, 2.13.12, 3.3.1]
steps:
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: adopt:8
- name: Set env Linux
if: ${{ startsWith(matrix.OS, 'ubuntu') }}
run: |
export LLVM_BIN=$(dirname $(readlink -f /usr/bin/clang))
echo "LLVM_BIN=${LLVM_BIN}" >> $GITHUB_ENV
- name: Set env Windows
if: ${{ startsWith(matrix.OS, 'windows') }}
shell: pwsh
run: |
Choco-Install -PackageName llvm -ArgumentList "--version=16.0.6", "--allow-downgrade", "--force"
echo "${env:ProgramFiles}\LLVM\bin" | Out-File -FilePath ${env:GITHUB_PATH} -Encoding utf8 -Append
echo "LLVM_BIN=${env:ProgramFiles}\LLVM\bin" >> ${env:GITHUB_OUTPUT}
- name: Test
run: >
sbt 'set cli/scalaVersion := "${{matrix.scala}}"'
+cli/test
+cliScriptedTests/scripted
shell: bash