Skip to content

Commit

Permalink
Add CI step to check RN bindings (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 authored Apr 29, 2024
1 parent 95a05cc commit fddabfa
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit fddabfa

Please sign in to comment.