Add List<Validation<T>>.flatten() and List<ValidationResult<T>>.flatten* #138
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: Test | |
on: | |
pull_request: | |
branches: [main] | |
workflow_call: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
# Test on macOS for the macOS build targets | |
- macos-latest | |
runs-on: ${{matrix.os}} | |
name: Test on ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
# Library is built for JVM 1.8, but we run gradle itself with a newer one because we can | |
# and the publishing plugin requires it | |
java-version: 21 | |
cache: 'gradle' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Cache Kotlin JS/Native dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
~/.npm | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: build-${{ runner.os }}-${{ hashFiles('build.gradle.kts', '**/gradle-wrapper.properties', 'settings.gradle.kts', 'kotlin-js-store/yarn.lock') }} | |
restore-keys: | | |
build-${{ runner.os }}-${{ hashFiles('build.gradle.kts') }} | |
build-${{ runner.os }}- | |
- name: Assemble & Test project | |
run: ./gradlew build |