From e06e857d26cb071e1a93dd1156ee010bc42fc11f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 28 Jan 2025 21:46:06 +0100 Subject: [PATCH] [CI] install Scala CLI using Github Action --- .github/workflows/nightly-builds.yml | 30 +++++----------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/nightly-builds.yml b/.github/workflows/nightly-builds.yml index c292911755..0cdb16695d 100644 --- a/.github/workflows/nightly-builds.yml +++ b/.github/workflows/nightly-builds.yml @@ -3,6 +3,7 @@ name: Nightly Builds on: schedule: - cron: "0 0 * * *" + pull_request: workflow_dispatch: permissions: {} @@ -11,7 +12,7 @@ jobs: pekko-cluster-metrics-sigar: name: Pekko Cluster Metrics Test with Sigar runs-on: ubuntu-22.04 - if: github.repository == 'apache/pekko' + if: github.repository == 'xapache/pekko' steps: - name: Checkout uses: actions/checkout@v4 @@ -67,7 +68,7 @@ jobs: pekko-classic-remoting-tests: name: Pekko Classic Remoting Tests runs-on: ubuntu-22.04 - if: github.repository == 'apache/pekko' + if: github.repository == 'xapache/pekko' strategy: fail-fast: false matrix: @@ -166,23 +167,6 @@ jobs: -Dio.netty.leakDetection.level=PARANOID \ clean "++ ${{ matrix.scalaVersion }} test" checkTestsHaveRun -# comment out test report until an apache or GitHub published action (action-surefire-report) can be found or added allowlist from INFRA -# - name: Test Reports -# # Makes it easier to spot failures instead of looking at the logs. -# if: ${{ failure() }} -# uses: marcospereira/action-surefire-report@v1 -# with: -# report_paths: '**/target/test-reports/TEST-*.xml' -# fail_if_no_tests: false - -# # Archive test results so we can do some diagnostics later -# - name: Upload test results -# uses: actions/upload-artifact@v2 -# if: success() || failure() # run this step even if previous step failed -# with: -# name: test-results-${{ matrix.javaVersion }}-${{ matrix.scalaVersion }} -# path: '**/target/test-reports/TEST-*.xml' - - name: Docs # Docs generation requires JDK 11. if: ${{ matrix.javaVersion == 11 }} @@ -202,13 +186,9 @@ jobs: -Dpekko.build.scalaVersion=${{ matrix.scalaVersion }} \ "++ ${{ matrix.scalaVersion }} ;publishLocal;publishM2" - - name: Install scala-cli + - name: Install Scala-CLI if: ${{ matrix.javaVersion == 11 }} - run: |- - curl -sS "https://virtuslab.github.io/scala-cli-packages/KEY.gpg" | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/scala-cli.gpg 2>/dev/null - sudo curl -s --compressed -o /etc/apt/sources.list.d/scala_cli_packages.list "https://virtuslab.github.io/scala-cli-packages/debian/scala_cli_packages.list" - sudo apt update - sudo apt install scala-cli + uses: VirtusLab/scala-cli-setup@main - name: Use Scala-CLI to verify jdk 9 classes if: ${{ matrix.javaVersion == 11 }}