docs: links fixing #1255
Workflow file for this run
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: Validate and test | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
tags-ignore: [ v* ] | |
permissions: | |
contents: read | |
concurrency: | |
# Only run once for latest commit per ref and cancel other (previous) runs. | |
group: ci-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
formatting-check: | |
name: Checks | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
# https://github.com/actions/checkout/releases | |
# v4.1.1 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Cache Coursier cache | |
# https://github.com/coursier/cache-action/releases | |
# v6.4.5 | |
uses: coursier/cache-action@1ff273bff02a8787bc9f1877d347948af647956d | |
- 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 Build Target | |
uses: actions/[email protected] | |
with: | |
path: project/**/target | |
key: build-target-${{ hashFiles('**/*.sbt', 'project/build.properties', 'project/**/*.scala') }} | |
- name: Autoformat | |
run: sbt +headerCreateAll +scalariformFormat +test:scalariformFormat | |
- name: Check for missing formatting | |
run: git diff --exit-code --color | |
compile-and-test: | |
name: Compile and test | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: # align with publish-test-reports.yml | |
SCALA_VERSION: [2.13, 3.3] | |
JDK_VERSION: ["1.11", "1.17"] | |
include: | |
- JDK_VERSION: 1.11 | |
JVM_NAME: temurin:1.11 | |
extraOpts: '' | |
- JDK_VERSION: 1.17 | |
JVM_NAME: temurin:1.17 | |
extraOpts: '' | |
steps: | |
- name: Checkout | |
# https://github.com/actions/checkout/releases | |
# v4.1.1 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
with: | |
fetch-depth: 0 | |
- name: Cache Coursier cache | |
# https://github.com/coursier/cache-action/releases | |
# v6.4.5 | |
uses: coursier/cache-action@1ff273bff02a8787bc9f1877d347948af647956d | |
- name: Set up JDK ${{ matrix.JDK_VERSION }} | |
# https://github.com/coursier/setup-action/releases | |
# v1.3.5 | |
uses: coursier/setup-action@7bde40eee928896f074dbb76d22dd772eed5c65f | |
with: | |
jvm: ${{ matrix.JVM_NAME }} | |
- name: Cache Build Target | |
uses: actions/[email protected] | |
with: | |
path: project/**/target | |
key: build-target-${{ hashFiles('**/*.sbt', 'project/build.properties', 'project/**/*.scala') }} | |
- name: Compile everything | |
run: sbt ++${{ matrix.SCALA_VERSION }} Test/compile ${{ matrix.extraOpts }} | |
# Quick testing for PR validation | |
- name: Validate pull request for JDK ${{ matrix.JDK_VERSION }}, Scala ${{ matrix.SCALA_VERSION }} | |
if: ${{ github.event_name == 'pull_request' }} | |
run: sbt -Dakka.http.parallelExecution=false -Dakka.test.timefactor=2 ++${{ matrix.SCALA_VERSION }} validatePullRequest ${{ matrix.extraOpts }} | |
# Full testing for pushes | |
- name: Run all tests JDK ${{ matrix.JDK_VERSION }}, Scala ${{ matrix.SCALA_VERSION }} | |
if: ${{ github.event_name == 'push' }} | |
run: sbt -Dakka.http.parallelExecution=false -Dakka.test.timefactor=2 ++${{ matrix.SCALA_VERSION }} mimaReportBinaryIssues test ${{ matrix.extraOpts }} | |
- name: Upload test results | |
uses: actions/[email protected] | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: 'test-results-${{ matrix.JDK_VERSION }}-${{ matrix.SCALA_VERSION }}' | |
path: '**/target/test-reports/*.xml' |