Skip to content

Commit 135b7cc

Browse files
committed
add coursier/cache-action, since setup-java doesn't have sbt anymore
1 parent 5fbc094 commit 135b7cc

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
name: CI
2-
1+
name: test
32
on:
4-
pull_request:
53
push:
6-
branches: ['main']
7-
tags: ['v[0-9]']
8-
4+
branches:
5+
- main
6+
pull_request:
97
jobs:
10-
build:
8+
test:
9+
strategy:
10+
fail-fast: false
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-java@v4
15-
with:
16-
distribution: 'temurin'
17-
java-version: '8'
18-
cache: 'sbt'
19-
- run: sbt +test scripted mimaReportBinaryIssues
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- uses: coursier/cache-action@v6
17+
- uses: actions/setup-java@v4
18+
with:
19+
distribution: temurin
20+
java-version: 8
21+
- name: test
22+
run: sbt +test scripted mimaReportBinaryIssues

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19+
- uses: coursier/cache-action@v6
1920
- uses: actions/setup-java@v4
2021
with:
21-
distribution: 'temurin'
22-
java-version: '8'
23-
cache: 'sbt'
22+
distribution: temurin
23+
java-version: 8
2424

2525
- name: Publish artifacts
2626
run: sbt ci-release

0 commit comments

Comments
 (0)