feature: Support JDK21 release version (#3223) #5224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
pull_request: | |
paths: | |
- '**.scala' | |
- '**.java' | |
- '**.sbt' | |
- '**/codecov.yml' | |
- '.scalafmt.conf' | |
- 'project/build.properties' | |
push: | |
branches: | |
- main | |
paths: | |
- '**.scala' | |
- '**.java' | |
- '**.sbt' | |
- '**/codecov.yml' | |
- '.scalafmt.conf' | |
- 'project/build.properties' | |
jobs: | |
coverage: | |
name: Coverage test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Scala 2.13 test with coverage report | |
run: ./sbt "++ 2.13; coverage; projectJVM/test; projectJVM/coverageReport; projectJVM/coverageAggregate" | |
- uses: codecov/codecov-action@v3 | |
with: | |
name: airframe-coverage | |
file: ./projectJVM/target/scoverage-report/scoverage.xml | |
- name: Archive code coverage results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: ./projectJVM/target/scoverage-report |