Skip to content

Commit

Permalink
CI: use setup-sbt (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Oct 14, 2024
1 parent 295fa4b commit 591fe49
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 4 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
with:
distribution: temurin
java-version: 11


- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand All @@ -51,14 +54,18 @@ jobs:
with:
distribution: temurin
java-version: 11

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

- name: Compile benchmarks
run: |-
cd benchmark-java
sbt test:compile
compile-and-test:
name: Compile and test
runs-on: ubuntu-latest
Expand All @@ -79,6 +86,12 @@ jobs:
distribution: temurin
java-version: ${{ matrix.JAVA_VERSION }}

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down Expand Up @@ -111,6 +124,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Install go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -140,6 +156,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down Expand Up @@ -196,6 +215,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down Expand Up @@ -241,9 +263,14 @@ jobs:
with:
distribution: temurin
java-version: 11

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6
- name: Test Maven Java

- name: Build Paradox Docs
run: |-
cp .jvmopts-ci .jvmopts
sbt paradox
5 changes: 4 additions & 1 deletion .github/workflows/headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}
jobs:
check-headers:
name: Check headers
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -19,6 +19,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
distribution: temurin
java-version: 11

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Cache Coursier cache
uses: coursier/cache-action@v6

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/nightly-snapshot-dependency-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Test
run: |-
cp .jvmopts-ci .jvmopts
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-1.0-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Build Documentation
run: |-
cp .jvmopts-ci .jvmopts
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-1.0-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Publish
run: |-
cp .jvmopts-ci .jvmopts
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-1.1-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Build Documentation
run: |-
cp .jvmopts-ci .jvmopts
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
distribution: temurin
java-version: 8

- name: Install sbt
uses: sbt/setup-sbt@v1

- name: Publish
run: |-
cp .jvmopts-ci .jvmopts
Expand Down

0 comments on commit 591fe49

Please sign in to comment.