CI #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 */7 * *" | |
permissions: | |
contents: read | |
jobs: | |
check: | |
name: Build and test | |
if: github.repository == 'akka/akka-grpc-quickstart-scala.g8' | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
# https://github.com/actions/checkout/releases | |
# v4.1.1 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up JDK 17 | |
# https://github.com/coursier/setup-action/releases | |
# v1.3.5 | |
uses: coursier/setup-action@7bde40eee928896f074dbb76d22dd772eed5c65f | |
with: | |
jvm: temurin:1.17 | |
- name: Cache Coursier cache | |
# https://github.com/coursier/cache-action/releases | |
# v6.4.5 | |
uses: coursier/cache-action@1ff273bff02a8787bc9f1877d347948af647956d | |
- name: sbt 2.13 test | |
run: |- | |
sbt new file://$PWD --name=hello-world213 --scala_version=2.13.14 --force && pushd hello-world213 && sbt test | |
- name: sbt Scala 3 | |
run: |- | |
sbt new file://$PWD --name=hello-world3 --scala_version=3.3.3 --force && pushd hello-world3 && sbt test | |
- name: Email on failure | |
if: ${{ failure() }} | |
uses: dawidd6/action-send-mail@v3 | |
with: | |
server_address: smtp.gmail.com | |
server_port: 465 | |
secure: true | |
username: ${{ secrets.MAIL_USERNAME }} | |
password: ${{ secrets.MAIL_PASSWORD }} | |
subject: "Failed: ${{ github.workflow }} / ${{ github.job }}" | |
to: [email protected] | |
from: Akka CI (GHActions) | |
body: | | |
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed! | |
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} |