Skip to content

Commit

Permalink
add react native CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Nov 13, 2023
1 parent 95e78dd commit 6c36c0e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
35 changes: 34 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion snippets/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"format": "eslint . --ext .js,.jsx,.ts,.tsx --fix"
},
"dependencies": {
"@breeztech/react-native-breez-sdk": "0.2.7",
"@breeztech/react-native-breez-sdk": "file:./packages/sdk-react-native.tgz",
"react": "18.1.0",
"react-native": "0.70.6"
},
Expand Down

0 comments on commit 6c36c0e

Please sign in to comment.