Update CONTRIBUTING.md (#77) #177
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: H2 Unit Tests | |
permissions: {} | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- migration-tool # remove before merging to main | |
tags-ignore: [ v.* ] | |
jobs: | |
test: | |
name: Build and Test | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { java-version: 8, scala-version: 2.12.18, sbt-opts: '' } | |
- { java-version: 8, scala-version: 2.13.11, sbt-opts: '' } | |
- { java-version: 11, scala-version: 2.12.18, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } | |
- { java-version: 11, scala-version: 2.13.11, sbt-opts: '-J-XX:+UnlockExperimentalVMOptions -J-XX:+UseJVMCICompiler' } | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
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: Setup JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: ${{ matrix.java-version }} | |
- name: Cache Coursier cache | |
uses: coursier/[email protected] | |
- name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} | |
run: sbt "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }} | |
- name: Print logs on failure | |
if: ${{ failure() }} | |
run: find . -name "*.log" -exec ./scripts/cat-log.sh {} \; |