Skip to content

Commit

Permalink
[CI] install Scala CLI using Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 28, 2025
1 parent 919d9c9 commit e06e857
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/nightly-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Nightly Builds
on:
schedule:
- cron: "0 0 * * *"
pull_request:
workflow_dispatch:

permissions: {}
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit e06e857

Please sign in to comment.