Skip to content

Nightly Builds (1.x) #34

Nightly Builds (1.x)

Nightly Builds (1.x) #34

Workflow file for this run

# 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 (1.x)
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.12, 2.13, 3]
JDK: [8, 17]
PEKKO_VERSION: ['1.x']
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
fetch-tags: true
ref: 1.4.x
- name: Set up JDK ${{ matrix.JDK }}
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
with:
distribution: temurin
java-version: ${{ matrix.JDK }}
- name: Install sbt
uses: sbt/setup-sbt@a627500d27445f8c5021755a439829b6e78e3358 # v1.1.15
- name: Cache Coursier cache
uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 # v7.0.0
- name: Cache Build Target
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
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 }}
run: sbt -Dpekko.http.parallelExecution=false -Dpekko.test.timefactor=2 -Dpekko.build.pekko.version=${{ matrix.PEKKO_VERSION }} "++ ${{ matrix.SCALA_VERSION }}" mimaReportBinaryIssues test
- name: Upload test results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
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'