diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a48a64..cc6a139 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,15 +4,18 @@ name: CI env: JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags - JVM_OPTS: -XX:+PrintCommandLineFlags 'on': workflow_dispatch: {} release: types: - published push: {} - pull_request: {} - create: {} + pull_request: + branches-ignore: + - gh-pages +concurrency: + group: ${{ github.workflow }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.run_id || github.ref }} + cancel-in-progress: true jobs: build: name: Build @@ -20,16 +23,16 @@ jobs: continue-on-error: true steps: - name: Git Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 with: fetch-depth: '0' - name: Install libuv run: sudo apt-get update && sudo apt-get install -y libuv1-dev - name: Setup Scala - uses: actions/setup-java@v3.10.0 + uses: actions/setup-java@v4 with: - distribution: temurin - java-version: '8' + distribution: corretto + java-version: '17' check-latest: true - name: Cache Dependencies uses: coursier/cache-action@v6 @@ -43,16 +46,16 @@ jobs: continue-on-error: false steps: - name: Git Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 with: fetch-depth: '0' - name: Install libuv run: sudo apt-get update && sudo apt-get install -y libuv1-dev - name: Setup Scala - uses: actions/setup-java@v3.10.0 + uses: actions/setup-java@v4 with: - distribution: temurin - java-version: '8' + distribution: corretto + java-version: '17' check-latest: true - name: Cache Dependencies uses: coursier/cache-action@v6 @@ -68,7 +71,9 @@ jobs: fail-fast: false matrix: java: + - '11' - '17' + - '21' scala-project: - ++2.13.8 zio-quickstart-encode-decode-json - ++2.13.13 zio-quickstart-sql @@ -78,15 +83,15 @@ jobs: - name: Install libuv run: sudo apt-get update && sudo apt-get install -y libuv1-dev - name: Setup Scala - uses: actions/setup-java@v3.10.0 + uses: actions/setup-java@v4 with: - distribution: temurin + distribution: corretto java-version: ${{ matrix.java }} check-latest: true - name: Cache Dependencies uses: coursier/cache-action@v6 - name: Git Checkout - uses: actions/checkout@v3.3.0 + uses: actions/checkout@v4 with: fetch-depth: '0' - name: Test diff --git a/build.sbt b/build.sbt index 55f0d18..be82247 100644 --- a/build.sbt +++ b/build.sbt @@ -9,13 +9,12 @@ inThisBuild( ciPostReleaseJobs := Seq.empty, ciCheckWebsiteBuildProcess := Seq.empty, scalaVersion := scala213.value, - ciTargetScalaVersions := makeTargetScalaMap( + ciTargetScalaVersions := targetScalaVersionsFor( `zio-quickstart-encode-decode-json`, `zio-quickstart-sql`, `zio-quickstart-prelude`, `zio-quickstart-restful-webservice` ).value, - ciDefaultTargetJavaVersions := Seq("17"), semanticdbEnabled := true, semanticdbVersion := scalafixSemanticdb.revision )