Skip to content

Commit b2d0ee5

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

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.github/workflows/ci.yml

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
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+
- uses: coursier/cache-action@v6
15+
- uses: actions/setup-java@v4
16+
with:
17+
distribution: temurin
18+
java-version: 8
19+
- name: test
20+
run: sbt +test scripted mimaReportBinaryIssues

.github/workflows/publish.yml

+3-3
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)