Updated Apache POI to 5.2.5 and Spark to 3.5.1 #66
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: Spark Excel CI | |
on: | |
push: | |
branches: [ main, development ] | |
pull_request: | |
types: [ opened, reopened ] | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
sparkVersion: [ 3.0.1, 3.0.2, 3.0.3, 3.1.2, 3.2.1, 3.2.4, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.4.0, 3.4.1, 3.5.0, 3.5.1 ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout with LFS | |
uses: actions/[email protected] | |
with: | |
lfs: true | |
- name: Set up JDK 8 | |
uses: actions/[email protected] | |
with: | |
java-version: '8' | |
distribution: 'adopt' | |
- name: Cache SBT dependencies | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.ivy2/cache | |
~/.sbt | |
~/.coursier | |
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}-${{ matrix.sparkVersion }} | |
restore-keys: | | |
${{ runner.os }}-sbt-${{ matrix.sparkVersion }} | |
- name: Run tests and produce coverage | |
run: sbt -DsparkVersion="${{matrix.sparkVersion}}" clean coverageOn test coverageReport | |
- name: Upload coverage to CodeCov | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./target/spark-${{ matrix.sparkVersion }}/scala-2.12/coverage-report/cobertura.xml | |
env_vars: ${{ matrix.sparkVersion }} | |
fail_ci_if_error: true | |
name: spark-excel | |
verbose: true | |
- name: Create assembly | |
if: ${{ github.event_name != 'pull_request' }} | |
run: sbt -DsparkVersion="${{matrix.sparkVersion}}" clean coverageOff assembly | |
- name: Upload the package | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: actions/[email protected] | |
with: | |
path: ./target/scala-2.12/spark-excel*.jar | |
if-no-files-found: warn |