Skip to content

Commit

Permalink
ci: [~] replace actions/cache by coursier/cache-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo committed Mar 12, 2024
1 parent 3a647bc commit 9a3868c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
13 changes: 8 additions & 5 deletions .github/actions/build_and_coverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ runs:
steps:

# SETUP & CACHE
- uses: coursier/[email protected]
- uses: coursier/[email protected]
id: coursier-cache
with:
jvm: adopt:8
apps: sbt scala scalafmt # https://github.com/coursier/apps
ignoreJob: 'true'
ignoreMatrix: 'true'

- uses: actions/[email protected]
- uses: actions/setup-java
if: steps.coursier-cache.outputs.cache-hit-coursier != 'true'
with:
key: "${{ env.SPARK_VERSION }}-${{ hashFiles('build.sbt') }}"
jvm: adopt:8
apps: sbt scala scalafmt # https://github.com/coursier/apps

# CHECK CODE FORMAT
- name: Code Format
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,18 @@ jobs:
- uses: actions/[email protected]

# SETUP & CACHE
- uses: coursier/[email protected]
id: coursier-cache
with:
ignoreJob: 'true'
ignoreMatrix: 'true'

- uses: coursier/[email protected]
if: steps.coursier-cache.outputs.cache-hit-coursier != 'true'
with:
jvm: adopt:8
apps: sbt scala scalafmt # https://github.com/coursier/apps

- uses: actions/[email protected]
with:
key: "${{ matrix.spark }}-${{ hashFiles('build.sbt') }}"

# MAVEN RELEASE
- name: Maven release 🎁
run: sbt ci-release -DsparkVersion=${{ matrix.spark }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/wc_publishSite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ jobs:
- uses: actions/[email protected]

# SETUP & CACHE
- uses: coursier/[email protected]
id: coursier-cache
with:
ignoreJob: 'true'
ignoreMatrix: 'true'

- uses: coursier/[email protected]
if: steps.coursier-cache.outputs.cache-hit-coursier != 'true'
with:
jvm: adopt:8
apps: sbt scala scalafmt # https://github.com/coursier/apps

- uses: actions/[email protected]
with:
key: "${{ matrix.spark }}-${{ hashFiles('build.sbt') }}"

# BUILD SCALADOCS (API)
- name: Build the scaladocs 💻
run: sbt -DsparkVersion=${{ matrix.spark }} +core/doc
Expand Down

0 comments on commit 9a3868c

Please sign in to comment.