-
Notifications
You must be signed in to change notification settings - Fork 52
71 lines (60 loc) · 2.57 KB
/
nightly.yml
File metadata and controls
71 lines (60 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Licensed to the Apache Software Foundation (ASF) under one or more
# license agreements; and to You under the Apache License, version 2.0:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# This file is part of the Apache Pekko project, which was derived from Akka.
#
name: Nightly Builds
on:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
jobs:
compile-and-test:
name: Compile and test
runs-on: ubuntu-latest
if: github.repository == 'apache/pekko-http'
strategy:
fail-fast: false
matrix:
SCALA_VERSION: [2.13, 3]
JDK: [17, 21, 25]
PEKKO_VERSION: ['main']
TLS_ENGINE_CONFIG: ['legacy-actor', 'graph-stage']
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
fetch-tags: true
- name: Set up JDK ${{ matrix.JDK }}
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: ${{ matrix.JDK }}
- name: Install sbt
uses: sbt/setup-sbt@2e222825582620cc38d2a54e674f3c01b7c14f5d # v1.1.24
- name: Cache Coursier cache
uses: coursier/cache-action@95e5b1029b6b86e7bac033ee44a0697d8a527d2d # v8.1.1
- name: Cache Build Target
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: project/**/target
key: build-target-${{ hashFiles('**/*.sbt', 'project/build.properties', 'project/**/*.scala') }}
- name: Enable jvm-opts
run: cp .jvmopts-ci .jvmopts
- name: Compile everything
run: sbt -Dpekko.build.pekko.version=${{ matrix.PEKKO_VERSION }} "++ ${{ matrix.SCALA_VERSION }}" Test/compile
- name: Run all tests JDK ${{ matrix.JDK }}, Scala ${{ matrix.SCALA_VERSION }}, Pekko ${{ matrix.PEKKO_VERSION }}, TLS Engine ${{ matrix.TLS_ENGINE_CONFIG }}
run: >
sbt -Dpekko.http.parallelExecution=false -Dpekko.test.timefactor=2
-Dpekko.build.pekko.version=${{ matrix.PEKKO_VERSION }}
-DTLS_ENGINE_CONFIG=${{ matrix.TLS_ENGINE_CONFIG }}
"++ ${{ matrix.SCALA_VERSION }}" mimaReportBinaryIssues test
- name: Upload test results
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
if: success() || failure() # run this step even if previous step failed
with:
name: test-results-${{ matrix.JDK }}-${{ matrix.SCALA_VERSION }}-${{ matrix.PEKKO_VERSION }}
path: '**/target/test-reports/*.xml'