-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update JS deps and add GitHub actions workflow for react-native (#329)
- Loading branch information
Showing
6 changed files
with
2,178 additions
and
1,147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: React-Native CI | ||
|
||
on: | ||
push: | ||
branches: [ main, next ] | ||
paths: [ 'fakewalletreact/**', 'js/**' ] | ||
pull_request: | ||
branches: [ main, next ] | ||
paths: [ 'fakewalletreact/**', 'js/**' ] | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: set up Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'fakewalletreact/package.json' # note - node engine should match between fakewalletreact/ and js/ | ||
cache: yarn | ||
cache-dependency-path: 'fakewalletreact/yarn.lock' # note - this only caches for fakewalletreact/, not js/ | ||
|
||
- name: set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Gradle cache | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: '[js] Install yarn dependencies' | ||
working-directory: 'js/' | ||
run: yarn install --frozen-lockfile | ||
- name: '[js] Lint' | ||
working-directory: 'js/' | ||
run: yarn lint | ||
continue-on-error: true # TODO: fix all lint issues and remove this line | ||
- name: '[js] Build' | ||
working-directory: 'js/' | ||
run: yarn build | ||
|
||
- name: '[fakewalletreact] Install yarn dependencies' | ||
working-directory: 'fakewalletreact/' | ||
run: yarn install --frozen-lockfile | ||
- name: '[fakewalletreact] Lint' | ||
working-directory: 'fakewalletreact/' | ||
run: yarn lint | ||
continue-on-error: true # TODO: fix all lint issues and remove this line | ||
- name: '[fakewalletreact] Build' | ||
working-directory: 'fakewalletreact/' | ||
run: yarn android:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.