add react native CI

This commit is contained in:
Jesse de Wit
2023-11-10 21:30:51 +01:00
committed by ok300
parent fc8be7ad20
commit 48fe09ea98
2 changed files with 35 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ jobs:
repository: breez/breez-sdk
ref: ${{ needs.setup.outputs.sdk-ref }}
package-version: ${{ needs.setup.outputs.package-version }}
packages-to-publish: '["csharp", "flutter", "golang"]'
packages-to-publish: '["csharp", "flutter", "golang", "react-native"]'
use-dummy-binaries: true
check-rust:
@@ -156,6 +156,39 @@ jobs:
- name: Build the csharp project
working-directory: snippets/csharp
run: dotnet build
check-react-native:
needs:
- setup
- build-packages
name: Check react native snippets
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Download archived package
uses: actions/download-artifact@v3
with:
name: react-native-${{ needs.setup.outputs.package-version }}
path: snippets/react-native/packages
- name: Install dependencies
working-directory: snippets/react-native
run: yarn
- name: Check syntax
working-directory: snippets/react-native
run: tsc
- name: Check formatting
working-directory: snippets/react-native
run: yarn run lint
check-golang:
needs:

View File

@@ -10,7 +10,7 @@
"compile": "tsc"
},
"dependencies": {
"@breeztech/react-native-breez-sdk": "0.2.9",
"@breeztech/react-native-breez-sdk": "file:./packages/sdk-react-native.tgz",
"react": "18.1.0",
"react-native": "0.70.6"
},