Update to kotlin 2.0 #59
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: "Build and Test" | |
on: | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
types: | |
- synchronize | |
- opened | |
jobs: | |
review: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-latest, ubuntu-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 19 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '19' | |
cache: gradle | |
- name: Setup Chrome | |
uses: browser-actions/setup-chrome@v1 | |
- name: Gradle cache | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Setup docker (MacOS only) | |
if: runner.os == 'macos' | |
run: | | |
brew install colima docker | |
# Workaround for https://github.com/actions/runner-images/issues/8104 | |
brew remove --ignore-dependencies qemu | |
curl -o ./qemu.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/dc0669eca9479e9eeb495397ba3a7480aaa45c2e/Formula/qemu.rb | |
brew install ./qemu.rb | |
colima start | |
# For testcontainers to find the Colima socket | |
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running | |
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock | |
- name: Tests with Gradle Major | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'major') }} | |
run: ./gradlew startAutobahnDockerContainer ktlintCheck assemble build check allTests publishToMavenLocal -PincrementMajor=true | |
- name: Tests with Gradle Minor | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'minor') }} | |
run: ./gradlew startAutobahnDockerContainer ktlintCheck assemble build check allTests publishToMavenLocal -PincrementMinor=true | |
- name: Tests with Gradle Patch | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'major') && !contains(github.event.pull_request.labels.*.name, 'minor') }} | |
run: ./gradlew startAutobahnDockerContainer ktlintCheck assemble build check allTests publishToMavenLocal |