Skip to content

Commit

Permalink
Modernize/Update/Align CI (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii authored Apr 13, 2024
1 parent f781c3e commit a48663c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 20 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
13 changes: 0 additions & 13 deletions .github/renovate.json

This file was deleted.

11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: CI

env:
JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags -XX:MaxMetaspaceSize=4G -Xmx4G -Xss8M # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java
JVM_OPTS: -XX:+PrintCommandLineFlags -XX:MaxMetaspaceSize=4G -Xmx4G -Xss8M # for Java 8 only (sadly, it is not modern enough for JDK_JAVA_OPTIONS)
NODE_OPTIONS: --max_old_space_size=6144

on:
Expand Down Expand Up @@ -77,7 +76,7 @@ jobs:
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8 # ensure it works on 8 because we publish for 8
java-version: 11 # ensure it works on 11 because we publish for 11
check-latest: true
- name: Setup NodeJs
uses: actions/setup-node@v4
Expand Down Expand Up @@ -141,7 +140,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java: ['8', '11']
java: ['11', '17', '21']
platform: ['JVM']
steps:
- name: Checkout current branch
Expand Down Expand Up @@ -207,7 +206,7 @@ jobs:
uses: actions/[email protected]
with:
distribution: temurin
java-version: '8'
java-version: '17'
check-latest: true
- name: Cache Dependencies
uses: coursier/cache-action@v6
Expand Down Expand Up @@ -274,7 +273,7 @@ jobs:
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8 # publish for 8
java-version: 11 # publish for 11
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
Expand Down Expand Up @@ -310,7 +309,7 @@ jobs:
uses: actions/[email protected]
with:
distribution: temurin
java-version: '8'
java-version: '11'
check-latest: true
- name: Cache Dependencies
uses: coursier/cache-action@v6
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/scala-steward.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Scala Steward

# This workflow will launch everyday at 00:00
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch: {}

jobs:
scala-steward:
timeout-minutes: 45
runs-on: ubuntu-latest
name: Scala Steward
steps:
- name: Scala Steward
uses: scala-steward-org/[email protected]
with:
github-app-id: ${{ secrets.SCALA_STEWARD_GITHUB_APP_ID }}
github-app-installation-id: ${{ secrets.SCALA_STEWARD_GITHUB_APP_INSTALLATION_ID }}
github-app-key: ${{ secrets.SCALA_STEWARD_GITHUB_APP_PRIVATE_KEY }}
github-app-auth-only: true
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ addSbtPlugin("org.scalameta" % "sbt-mdoc"
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
addSbtPlugin("pl.project13.scala" % "sbt-jcstress" % "0.2.0")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.7")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.4.0-alpha.22")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.4.0-alpha.25")

0 comments on commit a48663c

Please sign in to comment.