Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
if: matrix.java == 'temurin@25' && matrix.os == 'ubuntu-22.04'
run: sbt '++ ${{ matrix.scala }}' 'scalafixAll --check'

- name: Test
run: sbt '++ ${{ matrix.scala }}' test
- name: Test affected projects
run: sbt '++ ${{ matrix.scala }}' lucumaTestAffected

- name: Check binary compatibility
if: matrix.java == 'temurin@25' && matrix.os == 'ubuntu-22.04'
Expand All @@ -76,11 +76,20 @@ jobs:
if: matrix.java == 'temurin@25' && matrix.os == 'ubuntu-22.04'
run: sbt '++ ${{ matrix.scala }}' doc

- name: Aggregate coverage reports
run: sbt '++ ${{ matrix.scala }}' coverageReport coverageAggregate
- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
run: mkdir -p target project/target

- name: Upload code coverage data
uses: codecov/codecov-action@v6
- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
run: tar cf targets.tar target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master')
uses: actions/upload-artifact@v5
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}
path: targets.tar

publish:
name: Publish Artifacts
Expand Down Expand Up @@ -113,6 +122,16 @@ jobs:
if: matrix.java == 'temurin@25' && steps.setup-java-temurin-25.outputs.cache-hit == 'false'
run: sbt +update

- name: Download target directories (3)
uses: actions/download-artifact@v6
with:
name: target-${{ matrix.os }}-${{ matrix.java }}-3

- name: Inflate target directories (3)
run: |
tar xf targets.tar
rm targets.tar

- name: Import signing key
if: env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
env:
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ addSbtPlugin("io.github.cquiroz" % "sbt-tzdb" % "5.0.0")

addSbtPlugin("io.github.cquiroz" % "sbt-locales" % "4.5.0")

addSbtPlugin("edu.gemini" % "sbt-lucuma-lib" % "0.14.20")
addSbtPlugin("edu.gemini" % "sbt-lucuma-lib" % "0.15.4")

evictionErrorLevel := Level.Info