Add iOS SocketTransport implementation #235
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: Pre-merge checks | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build and test (OS ${{ matrix.os }}, JDK ${{ matrix.jvm-version }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
jvm-version: [17] | |
os: [ubuntu-latest, macos-13] | |
env: | |
JDK_VERSION: ${{ matrix.jvm-version }} | |
GRADLE_OPTS: -Dorg.gradle.daemon=false | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 # set to a value > 1 to support codecov.io SHA detection | |
- name: Clean Gradle caches | |
shell: bash | |
run: | | |
rm -rf ~/.gradle/caches/ && rm -rf ~/.gradle/wrapper/ | |
- name: Cache Gradle folders | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches/ | |
~/.gradle/wrapper/ | |
~/.konan/ | |
.build-cache/ | |
key: cache-gradle-${{ matrix.os }}-${{ matrix.jvm-version }}-${{ hashFiles('settings.gradle') }}-${{ hashFiles('**/build.gradle') }} | |
restore-keys: | | |
cache-gradle-${{ matrix.os }}-${{ matrix.jvm-version }}-${{ hashFiles('settings.gradle') }} | |
cache-gradle-${{ matrix.os }}-${{ matrix.jvm-version }} | |
- name: Ensure all code files have license headers | |
if: matrix.os == 'ubuntu-latest' && matrix.jvm-version == '17' | |
shell: bash | |
run: | | |
./script/ensure_license_headers.sh | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: ${{ matrix.jvm-version }} | |
distribution: zulu | |
- name: Build and test | |
shell: bash | |
run: ./gradlew check codeCoverageReport --parallel --no-daemon | |
- name: Boot simulator | |
if: matrix.os == 'macos-13' | |
shell: bash | |
run: xcrun simctl boot 'iPhone 14 Pro Max' || true | |
- name: Run simulator tests | |
if: matrix.os == 'macos-13' | |
shell: bash | |
run: ./gradlew -PiosDevice="iPhone 14 Pro Max" iosTest | |
- name: Upload coverage stats | |
if: success() && matrix.os == 'ubuntu-latest' && matrix.jvm-version == '8' | |
uses: codecov/codecov-action@v3 |