-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and refactor actions workflow (#41)
* Update apache poi to 5.2.5 and spark to 3.5.1 * Update scalaTestVersion * Refactor actions workflow * Rollback scala version update due to incompatibilities with coverage dependency * Revert package upload path in actions
- Loading branch information
1 parent
632cbe1
commit 58da865
Showing
2 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ on: | |
types: [ opened, reopened ] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build: | ||
strategy: | ||
|
@@ -17,30 +16,39 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout with LFS | ||
uses: actions/checkout@v3.5.2 | ||
uses: actions/checkout@v4.1.7 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3.11.0 | ||
uses: actions/setup-java@v4.2.1 | ||
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/codecov-action@v3.1.4 | ||
uses: codecov/codecov-action@v4.5.0 | ||
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 | ||
# path_to_write_report: ./target/spark-${{ matrix.sparkVersion }}/scala-2.12/coverage-report/codecov_report.txt | ||
verbose: true | ||
|
||
- name: Create assembly | ||
|
@@ -52,4 +60,4 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
path: ./target/spark-${{ matrix.sparkVersion }}/scala-2.12/spark-excel*.jar | ||
if-no-files-found: warn | ||
if-no-files-found: warn |
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