summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2022-02-09 17:34:04 +0100
committerStevenWdV <stevenwdv@gmail.com>2022-02-09 17:34:04 +0100
commit475118ceb9d383fc6e0b52475423fff159dc0535 (patch)
tree7c51a57b28b44a5d18fb9e47b474301f7cc4ba68
parentb9a0d73fd20d89e2368d65d7635c60e71f831b13 (diff)
Split up GitHub test workflow
-rw-r--r--.github/workflows/test.yml84
1 files changed, 79 insertions, 5 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8283702..1108a55 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -14,8 +14,8 @@ jobs:
go-version: ^1.15
- run: make test-go
- test-wrappers:
- name: Test wrappers
+ build-lib:
+ name: Build shared Go library
runs-on: ubuntu-latest
steps:
@@ -23,15 +23,89 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: ^1.15
+ - run: make
+ - uses: actions/upload-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+
+ test-csharp:
+ name: Test C# wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/csharp
+
+ test-java-android:
+ name: Test Android (Java) wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
- uses: android-actions/setup-android@v2
- - uses: slashmo/install-swift@v0.1.0
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/java-android NO_DAEMON=1 NO_EMULATOR=1
+
+ test-php:
+ name: Test PHP wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ # Note: PHP is already included: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/php
+
+ test-python:
+ name: Test Python wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ # Note: Python 3 is already included
+
+ - uses: actions/download-artifact@v2
+ with:
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/python
+
+ test-swift:
+ name: Test Swift wrapper
+ needs: build-lib
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ # Note: Swift is already included
+
+ - uses: actions/download-artifact@v2
with:
- version: 5.5
- - run: make test-wrappers NO_DAEMON=1 NO_EMULATOR=1
+ name: shared-lib
+ path: exports/lib/
+ - run: make -C wrappers/swift