Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
carueda committed Aug 23, 2024
1 parent 4049feb commit 52a25b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,22 @@ jobs:
- scala: '3.5'
scala-version: 3.5.0

# skip the (jdk=21, scala=2.13) combination, which has issues
if: ${{ !(startsWith(matrix.jdk, '21') && startsWith(matrix.scala, '2.13')) }}

steps:
# skip the (jdk=21, scala=2.13) combination, which has issues
- uses: actions/checkout@v4
if: ${{ !(startsWith(matrix.jdk, '21') && startsWith(matrix.scala, '2.13')) }}
- uses: actions/setup-java@v4
if: ${{ !(startsWith(matrix.jdk, '21') && startsWith(matrix.scala, '2.13')) }}
with:
distribution: temurin
java-version: ${{ matrix.jdk }}

- name: Check and compile
if: ${{ !(startsWith(matrix.jdk, '21') && startsWith(matrix.scala, '2.13')) }}
run: sbt ++${{ matrix.scala-version }} scalafmtCheckAll compile

- name: Test
if: ${{ !(startsWith(matrix.jdk, '21') && startsWith(matrix.scala, '2.13')) }}
run: >
if [[ "${{ matrix.scala }}" =~ ^2\..* ]]; then
sbt ++${{ matrix.scala-version }} coverage genCode test;
Expand All @@ -42,6 +44,7 @@ jobs:
fi
- name: Assembly
if: ${{ !(startsWith(matrix.jdk, '21') && startsWith(matrix.scala, '2.13')) }}
run: sbt ++${{ matrix.scala-version }} assembly

# Coveralls only "once":
Expand Down

0 comments on commit 52a25b5

Please sign in to comment.