From fddabfa0dd6f94aa352b1c99f80d53c6888016a9 Mon Sep 17 00:00:00 2001 From: ok300 <106775972+ok300@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:53:02 +0000 Subject: [PATCH] Add CI step to check RN bindings (#115) --- .github/workflows/main.yml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb8e0e12e..a6d8d5983 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,4 +61,33 @@ jobs: curl -o jna-5.12.1.jar https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.12.1/jna-5.12.1.jar export CLASSPATH=$(pwd)/jna-5.12.1.jar; cd lib/ls-sdk-bindings - cargo test \ No newline at end of file + cargo test + + react-native: + name: Check react native bindings + runs-on: macOS-14 + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: React native codegen + working-directory: lib/ls-sdk-react-native + run: | + yarn global add tslint typescript + brew update + brew install kotlin ktlint swiftformat + make react-native + + - name: Check git status + env: + GIT_PAGER: cat + run: | + status=$(git status --porcelain) + if [[ -n "$status" ]]; then + echo "Git status has changes" + echo "$status" + git diff + exit 1 + else + echo "No changes in git status" + fi \ No newline at end of file