Skip to content

Run library deployment job on macos because it can build all targets #55

Run library deployment job on macos because it can build all targets

Run library deployment job on macos because it can build all targets #55

Workflow file for this run

name: Unit Tests
on:
push:
paths:
- '**.kt'
- '**.kts'
- '**/gradle.properties'
- '**/gradlew'
- '**/gradlew.bat'
- '.github/workflows/**'
pull_request:
paths:
- '**.kt'
- '**.kts'
- '**/gradle.properties'
- '**/gradlew'
- '**/gradlew.bat'
- '.github/workflows/**'
workflow_dispatch:
# Make sure only one run is ever queued simultaneously to save resources.
# If a run is queued when one is already queued, the old one will get cancelled before it starts.
concurrency:
group: "unit-tests"
cancel-in-progress: false
jobs:
test_linux:
name: Run unit tests on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Symlink libcurl to a name recognized by the linker
run: sudo find / -name 'libcurl.so.*' -execdir realpath '{}' ';' -execdir ln -v -s '{}' 'libcurl.so' ';'
- name: Run platform-specific tests
run: ./gradlew linuxX64Test --info
- name: Install Java for JVM tests
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Run JVM tests
run: ./gradlew jvmTest --info
- name: Install browser for JS tests
uses: abhi1693/[email protected]
with:
browser: chrome
- name: Install Node for JS tests
uses: actions/setup-node@v3
with:
node-version: latest
- name: Run JS Browser tests
run: ./gradlew jsBrowserTest --info
- name: Run JS Node tests
run: ./gradlew jsNodeTest --info
- name: Publish test results
uses: actions/upload-artifact@v3
with:
name: test-results-linux
path: |
build/test-results/
build/reports/
test_macos:
name: Run unit tests on MacOS
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Run platform-specific tests
run: ./gradlew macosX64Test --info
- name: Install Java for JVM tests
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Run JVM tests
run: ./gradlew jvmTest --info
- name: Install browser for JS tests
uses: abhi1693/[email protected]
with:
browser: chrome
- name: Install Node for JS tests
uses: actions/setup-node@v3
with:
node-version: latest
- name: Run JS Browser tests
run: ./gradlew jsBrowserTest --info
- name: Run JS Node tests
run: ./gradlew jsNodeTest --info
- name: Publish test results
uses: actions/upload-artifact@v3
with:
name: test-results-macos
path: |
build/test-results/
build/reports/
test_windows:
name: Run unit tests on Windows
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: Run platform-specific tests
run: ./gradlew windowsX64Test --info
- name: Install Java for JVM tests
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Run JVM tests
run: ./gradlew jvmTest --info
- name: Install browser for JS tests
uses: abhi1693/[email protected]
with:
browser: chrome
- name: Install Node for JS tests
uses: actions/setup-node@v3
with:
node-version: latest
- name: Run JS Browser tests
run: ./gradlew jsBrowserTest --info
- name: Run JS Node tests
run: ./gradlew jsNodeTest --info
- name: Publish test results
uses: actions/upload-artifact@v3
with:
name: test-results-windows
path: |
build/test-results/
build/reports/