diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..bcf246cc --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,17 @@ +name: Run Rive tests + +on: + push: + +jobs: + run_tests: + name: Run Rive tests + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + token: ${{ secrets.RIVE_REPO_PAT }} + submodules: recursive + - name: Testing iOS app + run: sh ./scripts/test.sh diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 00000000..31c7e0f7 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,7 @@ +set -eo pipefail + +# test RiveRuntime on a simulator +xcodebuild -workspace Rive.xcworkspace \ + -scheme RiveRuntime \ + -destination platform=iOS\ Simulator,name=iPhone\ 11 \ + clean test | xcpretty \ No newline at end of file