Skip to content

build: bump GH actions (#190) #403

build: bump GH actions (#190)

build: bump GH actions (#190) #403

Workflow file for this run

name: Validate and test
on:
pull_request:
push:
branches:
- main
tags-ignore: [ v.* ]
permissions:
contents: read
jobs:
check-code-style:
name: Checks
runs-on: Akka-Default
if: github.event.repository.fork == false
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
uses: actions/checkout@v6
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: Checkout GitHub merge
if: github.event.pull_request
run: |-
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
git checkout scratch
- name: Cache Coursier cache
# https://github.com/coursier/cache-action/releases
uses: coursier/cache-action@v8.1.0
- name: Set up JDK 11
# https://github.com/coursier/setup-action/releases
uses: coursier/setup-action@v3.0.0
with:
jvm: temurin:1.11.0
- name: Run akka/github-actions-scripts
uses: akka/github-actions-scripts/setup_global_resolver@main
- name: Code style check, compilation and binary-compatibility check
run: |-
cp .jvmopts-ci .jvmopts
sbt scalafmtCheckAll scalafmtSbtCheck headerCheck mimaReportBinaryIssues +Test/compile
test:
name: Run tests
runs-on: Akka-Default
if: github.event.repository.fork == false
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Checkout GitHub merge
if: github.event.pull_request
run: |-
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
git checkout scratch
- name: Cache Coursier cache
# https://github.com/coursier/cache-action/releases
uses: coursier/cache-action@v8.1.0
- name: Set up JDK 11
# https://github.com/coursier/setup-action/releases
uses: coursier/setup-action@v3.0.0
with:
jvm: temurin:1.11.0
- name: Run akka/github-actions-scripts
uses: akka/github-actions-scripts/setup_global_resolver@main
- name: Start DB
run: |-
docker compose -f docker/docker-compose-with-s3.yml up --wait
- name: sbt test
run: |-
cp .jvmopts-ci .jvmopts
sbt test
test-docs:
name: Docs
runs-on: Akka-Default
if: github.event.repository.fork == false
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Checkout GitHub merge
if: github.event.pull_request
run: |-
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
git checkout scratch
- name: Cache Coursier cache
# https://github.com/coursier/cache-action/releases
uses: coursier/cache-action@v8.1.0
- name: Set up JDK 25
# https://github.com/coursier/setup-action/releases
uses: coursier/setup-action@v3.0.0
with:
jvm: temurin:1.25
- name: Run akka/github-actions-scripts
uses: akka/github-actions-scripts/setup_global_resolver@main
- name: Run Paradox
run: |-
cp .jvmopts-ci .jvmopts
sbt docs/paradox