Skip to content

Add static builders named of for all types #356

Add static builders named of for all types

Add static builders named of for all types #356

Workflow file for this run

name: Integration
on:
pull_request:
branches: [ main ]
paths:
- '**gradle*'
- '**.kt*'
- .github/workflows/integration.yml
push:
branches: [ main ]
paths:
- '**gradle*'
- '**.kt*'
- .github/workflows/integration.yml
workflow_dispatch:
env:
CACHING: gradle
JAVA_DISTRIBUTION: temurin
JAVA_VERSION: 17
jobs:
# ---------- Stage 1 ----------
validate-wrapper:
name: Validate Gradle wrapper
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Validate Gradle wrapper
uses: gradle/[email protected]
# ---------- Stage 2 ----------
check-api-binaries:
name: Check API binaries
needs: validate-wrapper
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java & Gradle
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: ${{ env.CACHING }}
- name: Check API binaries
run: ./gradlew :apiCheck --no-daemon --quiet
dependencies:
name: Submit dependencies to GitHub
needs: validate-wrapper
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Submit dependencies to GitHub
uses: mikepenz/[email protected]
with:
gradle-build-configuration: allSourceSetsRuntimeDependenciesMetadata
fail-on-error: true
js-test:
name: JS tests
needs: validate-wrapper
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java & Gradle
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: ${{ env.CACHING }}
- name: Test code
run: ./gradlew :jsTest --no-daemon --quiet
jvm-test:
name: JVM tests
needs: validate-wrapper
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java & Gradle
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: ${{ env.CACHING }}
- name: Test code
run: ./gradlew :jvmTest --no-daemon --quiet
linux-test:
name: Linux tests
needs: validate-wrapper
runs-on: ubuntu-latest
permissions: read-all
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java & Gradle
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: ${{ env.CACHING }}
- name: Test code
run: ./gradlew :linuxTest --no-daemon --quiet
macos-test:
name: macOS tests
needs: validate-wrapper
runs-on: macos-latest
permissions: read-all
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java & Gradle
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: ${{ env.CACHING }}
- name: Test code
run: ./gradlew :macosTest --no-daemon --quiet
windows-test:
name: Windows tests
needs: validate-wrapper
runs-on: windows-latest
permissions: read-all
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup Java & Gradle
uses: actions/[email protected]
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
cache: ${{ env.CACHING }}
- name: Test code
run: ./gradlew :windowsTest --no-daemon --quiet