Skip to content

Commit e06e857

Browse files
committed
[CI] install Scala CLI using Github Action
1 parent 919d9c9 commit e06e857

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

Diff for: .github/workflows/nightly-builds.yml

+5-25
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Nightly Builds
33
on:
44
schedule:
55
- cron: "0 0 * * *"
6+
pull_request:
67
workflow_dispatch:
78

89
permissions: {}
@@ -11,7 +12,7 @@ jobs:
1112
pekko-cluster-metrics-sigar:
1213
name: Pekko Cluster Metrics Test with Sigar
1314
runs-on: ubuntu-22.04
14-
if: github.repository == 'apache/pekko'
15+
if: github.repository == 'xapache/pekko'
1516
steps:
1617
- name: Checkout
1718
uses: actions/checkout@v4
@@ -67,7 +68,7 @@ jobs:
6768
pekko-classic-remoting-tests:
6869
name: Pekko Classic Remoting Tests
6970
runs-on: ubuntu-22.04
70-
if: github.repository == 'apache/pekko'
71+
if: github.repository == 'xapache/pekko'
7172
strategy:
7273
fail-fast: false
7374
matrix:
@@ -166,23 +167,6 @@ jobs:
166167
-Dio.netty.leakDetection.level=PARANOID \
167168
clean "++ ${{ matrix.scalaVersion }} test" checkTestsHaveRun
168169
169-
# comment out test report until an apache or GitHub published action (action-surefire-report) can be found or added allowlist from INFRA
170-
# - name: Test Reports
171-
# # Makes it easier to spot failures instead of looking at the logs.
172-
# if: ${{ failure() }}
173-
# uses: marcospereira/action-surefire-report@v1
174-
# with:
175-
# report_paths: '**/target/test-reports/TEST-*.xml'
176-
# fail_if_no_tests: false
177-
178-
# # Archive test results so we can do some diagnostics later
179-
# - name: Upload test results
180-
# uses: actions/upload-artifact@v2
181-
# if: success() || failure() # run this step even if previous step failed
182-
# with:
183-
# name: test-results-${{ matrix.javaVersion }}-${{ matrix.scalaVersion }}
184-
# path: '**/target/test-reports/TEST-*.xml'
185-
186170
- name: Docs
187171
# Docs generation requires JDK 11.
188172
if: ${{ matrix.javaVersion == 11 }}
@@ -202,13 +186,9 @@ jobs:
202186
-Dpekko.build.scalaVersion=${{ matrix.scalaVersion }} \
203187
"++ ${{ matrix.scalaVersion }} ;publishLocal;publishM2"
204188
205-
- name: Install scala-cli
189+
- name: Install Scala-CLI
206190
if: ${{ matrix.javaVersion == 11 }}
207-
run: |-
208-
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
209-
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"
210-
sudo apt update
211-
sudo apt install scala-cli
191+
uses: VirtusLab/scala-cli-setup@main
212192

213193
- name: Use Scala-CLI to verify jdk 9 classes
214194
if: ${{ matrix.javaVersion == 11 }}

0 commit comments

Comments
 (0)