Skip to content

Commit

Permalink
Update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamet committed Jan 15, 2025
1 parent 4cc4b1c commit 7ec79fc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- name: Mount caches
uses: actions/cache@v3
with:
path: |
~/.sbt
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Compile and test
run: |
sbt -J-Xmx2G -J-Xss4M test
shell: bash
- name: Format check
run: |
sbt scalafmtCheck test:scalafmtCheck scalafmtSbtCheck
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- uses: sbt/setup-sbt@v1
- name: Mount caches
uses: actions/cache@v3
with:
path: |
~/.sbt
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: Compile and test
run: |
sbt -J-Xmx2G -J-Xss4M test
shell: bash
- name: Format check
run: |
sbt scalafmtCheck test:scalafmtCheck scalafmtSbtCheck
# Single final job for mergify.
ci-passed:
runs-on: ubuntu-latest
needs: build
steps:
- run: ':'
- run: ":"
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
java-version: 8
distribution: temurin
- uses: sbt/setup-sbt@v1
- uses: olafurpg/setup-gpg@v3
- name: Publish ${{ github.ref }}
run: sbt ci-release
Expand Down

0 comments on commit 7ec79fc

Please sign in to comment.