Merge pull request #30521 from akka/wip-gh-actions-patriknw

Add (some) GH Actions nightly jobs
This commit is contained in:
Patrik Nordwall 2021-08-11 13:27:09 +02:00 committed by GitHub
commit 78a549c7a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 319 additions and 43 deletions

View file

@ -0,0 +1,120 @@
name: PRValidation Workflow
on:
pull_request:
concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
check-code-style:
name: Checks
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
- name: Set up JDK 8
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8.0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
## https://github.com/akka/akka/issues/30459
# ghtag "$ghprbPullId" akka akka '["validating"]' "tested needs-attention"
- name: Code style check
run: |-
# MiMa is disabled in GHActions because it's already covered in Travis builds (travis runs for multiple scala versions)
# FIXME move MiMa checks to GHActions
sbt -jvm-opts .jvmopts-ci \
-Dakka.mima.enabled=false \
-Dakka.ci-server=true \
-Dakka.test.multi-in-test=false \
-Dakka.test.multi-node=false \
-Dakka.cluster.assert=on \
-Dsbt.override.build.repos=false \
-Dsbt.log.noformat=false \
-Dakka.log.timestamps=true \
scalafmtCheckAll scalafmtSbtCheck
Check-Publish:
name: Check publishing locally
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
- name: Set up JDK 8
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8.0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
- name: Akka publishLocal
run: |-
sbt -jvm-opts .jvmopts-ci \
-Dakka.mima.enabled=false \
-Dakka.ci-server=true \
-Dakka.test.tags.exclude=performance,timing,long-running,gh-exclude \
-Dakka.test.multi-in-test=false \
-Dakka.test.timefactor=1 \
-Dakka.cluster.assert=on \
-Dsbt.override.build.repos=false \
-Dakka.test.multi-node=false \
-Dsbt.log.noformat=false \
-Dakka.log.timestamps=true \
publishLocal publishM2
PR-Validation:
name: PR Validation
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0
- name: Set up JDK 8
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8.0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
- name: Akka validatePR
# FIXME: Change this to validatePullRequest
run: |-
sbt -jvm-opts .jvmopts-ci \
-Dakka.mima.enabled=false \
-Dakka.ci-server=true \
-Dakka.test.tags.exclude=performance,timing,long-running,gh-exclude \
-Dakka.test.multi-in-test=false \
-Dakka.test.timefactor=1 \
-Dakka.cluster.assert=on \
-Dsbt.override.build.repos=false \
-Dakka.test.multi-node=false \
-Dsbt.log.noformat=false \
-Dakka.log.timestamps=true \
Test/compile
## https://github.com/akka/akka/issues/30459
## if success
# ghtag "$ghprbPullId" akka akka '["tested"]' "validating needs-attention"
## if aborted or unstable
# ghtag "$ghprbPullId" akka akka '["needs-attention"]' "tested validating"

46
.github/workflows/nightly-jdk11.yml vendored Normal file
View file

@ -0,0 +1,46 @@
name: Nightly jkd11
on:
schedule:
- cron: '0 6 * * *'
jobs:
compile-and-test:
name: Compile and test
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 11
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.11
- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
- name: Compile and test for JDK11
run: |-
sbt -jvm-opts .jvmopts-ci \
-Dakka.test.timefactor=1 \
-Dakka.genjavadoc.enabled=true \
-Dakka.test.multi-in-test=false \
clean test checkTestsHaveRun
- name: Email on failure
if: ${{ failure() }}
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Nightly jkd11 Failed (Akka)
to: akka.official@gmail.com
from: Akka CI (GHActions)
body: |
Nightly jkd11 of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

View file

@ -0,0 +1,47 @@
name: Nightly jdk8/scala2.13
on:
schedule:
- cron: '0 20 * * *'
jobs:
compile-and-test:
name: Compile and test
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 8
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8.0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
- name: Compile and test for JDK8 (scala2.13)
run: |-
# TODO: restore -Dakka.test.multi-node.java=/usr/lib/jvm/jdk8u192-b12/bin/java
sbt -jvm-opts .jvmopts-ci \
-Dakka.ci-server=true \
-Dakka.build.scalaVersion=2.13.3 \
-Dakka.test.timefactor=1 \
-Dakka.cluster.assert=on \
clean compile test doc
- name: Email on failure
if: ${{ failure() }}
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Nightly jdk8/scala2.13 Failed (Akka)
to: akka.official@gmail.com
from: Akka CI (GHActions)
body: |
Nightly jdk8/scala2.13 of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

52
.github/workflows/nightly-jdk8.yml vendored Normal file
View file

@ -0,0 +1,52 @@
name: Nightly jkd8
on:
schedule:
- cron: '0 4,21 * * *'
jobs:
compile-and-test:
name: Compile and test
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 8
uses: olafurpg/setup-scala@v10
with:
java-version: adopt@$1.8.0
- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
- name: Compile and test for JDK ${{ matrix.JABBA_JDK }}, Scala ${{ matrix.SCALA_VERSION }}
run: |-
## TODO: restore the multi-node tests
sbt -jvm-opts .jvmopts-ci \
-Dakka.ci-server=true \
-Dakka.test.timefactor=1 \
-Dakka.cluster.assert=on \
-Dakka.test.metrics.reporters.0=console \
-Dakka.test.metrics.reporters.1=graphit \
-Dakka.test.metrics.reporter.graphite.prefix=jenkins \
-Dakka.test.metrics.reporter.graphite.host=54.72.154.120 \
-Dakka.sbt.statsd=false \
clean update whitesourceUpdate whitesourceCheckPolicies test:compile test publishLocal publishM2
- name: Email on failure
if: ${{ failure() }}
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{secrets.MAIL_USERNAME}}
password: ${{secrets.MAIL_PASSWORD}}
subject: Nightly jdk8 Failed (Akka)
to: akka.official@gmail.com
from: Akka CI (GHActions)
body: |
Nightly jdk8 of ${{github.repository}} failed!
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}