build: update oracle image for mac compatibility (#950) #1032
This file contains hidden or 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: Basic checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| tags-ignore: [ v.* ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-code-style: | |
| name: Check Code Style | |
| runs-on: Akka-Default | |
| 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 and binary-compatibility check | |
| # Run locally with: sbt 'verifyCodeStyle ; mimaReportBinaryIssues' | |
| run: sbt "; verifyCodeStyle; mimaReportBinaryIssues" | |
| check-code-compilation: | |
| name: Check Code Compilation | |
| runs-on: Akka-Default | |
| 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: Compile all code with fatal warnings for Java 11 and Scala 2.13 | |
| # Run locally with: sbt 'clean ; +Test/compile ; +It/compile' | |
| run: sbt "; Test/compile" | |
| - name: Compile all code with Scala 3.3 | |
| run: sbt "++3.3; Test/compile" | |
| check-docs: | |
| name: Check Docs | |
| runs-on: Akka-Default | |
| 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: Create all API docs for artifacts/website and all reference docs | |
| run: sbt docs/paradox |