From 0db77be97f8c75adec387f148d60f62792c9ed2c Mon Sep 17 00:00:00 2001 From: Ignasi Marimon-Clos Date: Mon, 2 Aug 2021 19:41:25 +0200 Subject: [PATCH] Add GH Actions JDKx nightly jobs * Use inline sbt args * Prefer ubuntu LTS * Link to tagging issue --- .github/workflows/build-test-prValidation.yml | 4 +- .github/workflows/nightly-jdk11.yml | 46 ++++++++++++++++ .github/workflows/nightly-jdk8-scala2.13.yml | 47 +++++++++++++++++ .github/workflows/nightly-jdk8.yml | 52 +++++++++++++++++++ 4 files changed, 148 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/nightly-jdk11.yml create mode 100644 .github/workflows/nightly-jdk8-scala2.13.yml create mode 100644 .github/workflows/nightly-jdk8.yml diff --git a/.github/workflows/build-test-prValidation.yml b/.github/workflows/build-test-prValidation.yml index aceb8b713d..a871d80938 100644 --- a/.github/workflows/build-test-prValidation.yml +++ b/.github/workflows/build-test-prValidation.yml @@ -27,6 +27,7 @@ jobs: - 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 @@ -44,7 +45,7 @@ jobs: scalafmtCheckAll scalafmtSbtCheck test:compile Check-Publish: - name: PR Validation + name: Check publishing locally runs-on: ubuntu-20.04 steps: - name: Checkout @@ -114,6 +115,7 @@ jobs: -Dakka.log.timestamps=true \ ${{ matrix.project }}/validatePullRequest +## https://github.com/akka/akka/issues/30459 ## if success # ghtag "$ghprbPullId" akka akka '["tested"]' "validating needs-attention" ## if aborted or unstable diff --git a/.github/workflows/nightly-jdk11.yml b/.github/workflows/nightly-jdk11.yml new file mode 100644 index 0000000000..37147c19d0 --- /dev/null +++ b/.github/workflows/nightly-jdk11.yml @@ -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}} diff --git a/.github/workflows/nightly-jdk8-scala2.13.yml b/.github/workflows/nightly-jdk8-scala2.13.yml new file mode 100644 index 0000000000..8760932847 --- /dev/null +++ b/.github/workflows/nightly-jdk8-scala2.13.yml @@ -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}} diff --git a/.github/workflows/nightly-jdk8.yml b/.github/workflows/nightly-jdk8.yml new file mode 100644 index 0000000000..a6a2dd5eeb --- /dev/null +++ b/.github/workflows/nightly-jdk8.yml @@ -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}}