From b18272e50daebf72fc9feec2b05d1443529f61b3 Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Thu, 1 Oct 2026 10:54:17 -0400 Subject: [PATCH] ci: run hinge-core tests on pull requests and main The repo had no CI, so #1 merged with only local test runs behind it. Two jobs run the same commonTest suite on both hosts it targets: testAndroidHostTest on Ubuntu and iosSimulatorArm64Test on macOS. JDK 21 matches the local build; the code still targets JVM 17. --- .github/workflows/hinge-core-tests.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/hinge-core-tests.yml diff --git a/.github/workflows/hinge-core-tests.yml b/.github/workflows/hinge-core-tests.yml new file mode 100644 index 0000000..6f7cf2d --- /dev/null +++ b/.github/workflows/hinge-core-tests.yml @@ -0,0 +1,35 @@ +name: hinge-core tests + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + android-host: + name: Android host + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-java@v6 + with: + distribution: temurin + java-version: 21 + - uses: gradle/actions/setup-gradle@v6 + - run: ./gradlew :hinge-core:testAndroidHostTest + + ios-simulator: + name: iOS simulator + runs-on: macos-latest + steps: + - uses: actions/checkout@v7 + - uses: actions/setup-java@v6 + with: + distribution: temurin + java-version: 21 + - uses: gradle/actions/setup-gradle@v6 + - run: ./gradlew :hinge-core:iosSimulatorArm64Test