Skip to content

Commit

Permalink
test ternary operator for suffix selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Oct 6, 2024
1 parent 9cfe9f1 commit e89a1ef
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,7 @@ jobs:
uses: coursier/cache-action@v6
- name: Run ${{ matrix.scala }} ${{ matrix.platform }} tests
run: |
SCALA_SUFFIX=""
if [[ ${{ matrix.scala }} == 2.12* ]]; then
SCALA_SUFFIX="212"
elif [[ ${{ matrix.scala }} == 2.13* ]]; then
SCALA_SUFFIX="213"
elif [[ ${{ matrix.scala }} == 3.* ]]; then
SCALA_SUFFIX="3"
fi
sbt test${{ matrix.platform }}${SCALA_SUFFIX}
sbt test${{ matrix.platform }}${{ startsWith(matrix.scala, '2.12') && '212' || (startsWith(matrix.scala, '2.13') && '213' || (startsWith(matrix.scala, '3') && '3' || '')) }}
ci:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit e89a1ef

Please sign in to comment.