-
Notifications
You must be signed in to change notification settings - Fork 476
chore: monorepo setup #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: monorepo setup #1002
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ jobs: | |
run: yarn | ||
- name: Run test ${{ matrix.test-name }} | ||
run: yarn test:${{ matrix.test-name }} | ||
working-directory: packages/default-storage-backend | ||
android: | ||
name: Android | ||
runs-on: ubuntu-22.04 | ||
|
@@ -42,10 +43,11 @@ jobs: | |
with: | ||
gradle-version: wrapper | ||
arguments: react-native-async-storage_async-storage:test | ||
build-root-directory: example/android | ||
build-root-directory: packages/default-storage-backend/example/android | ||
- name: Build e2e binary | ||
run: | | ||
yarn build:e2e:android | ||
working-directory: packages/default-storage-backend | ||
|
||
ios: | ||
name: iOS | ||
|
@@ -56,7 +58,7 @@ jobs: | |
- name: Cache /.ccache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .ccache | ||
path: packages/default-storage-backend/.ccache | ||
key: ccache-ios-${{ hashFiles('yarn.lock') }} | ||
restore-keys: ccache-ios- | ||
- name: Set up Node.js | ||
|
@@ -70,13 +72,15 @@ jobs: | |
- name: Bundle JS | ||
run: | | ||
yarn bundle:ios | ||
working-directory: packages/default-storage-backend | ||
- name: Install Pods | ||
run: | | ||
RCT_NEW_ARCH_ENABLED=1 pod install | ||
working-directory: example/ios | ||
working-directory: packages/default-storage-backend/example/ios | ||
- name: Build e2e binary | ||
run: | | ||
yarn build:e2e:ios | ||
working-directory: packages/default-storage-backend | ||
|
||
macos: | ||
name: macOS | ||
|
@@ -87,7 +91,7 @@ jobs: | |
- name: Cache /.ccache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .ccache | ||
path: packages/default-storage-backend/.ccache | ||
key: ccache-macos-${{ hashFiles('yarn.lock') }} | ||
restore-keys: ccache-macos- | ||
- name: Set up Node.js | ||
|
@@ -101,17 +105,20 @@ jobs: | |
- name: Bundle JS | ||
run: | | ||
yarn bundle:macos | ||
working-directory: packages/default-storage-backend | ||
- name: Install Pods | ||
run: | | ||
RCT_NEW_ARCH_ENABLED=1 pod install | ||
working-directory: example/macos | ||
working-directory: packages/default-storage-backend/example/macos | ||
- name: Build | ||
run: | | ||
yarn build:e2e:macos | ||
working-directory: packages/default-storage-backend | ||
- name: Test | ||
if: false | ||
run: | | ||
yarn test:e2e:macos | ||
working-directory: packages/default-storage-backend | ||
|
||
windows: | ||
name: Windows | ||
|
@@ -134,9 +141,11 @@ jobs: | |
- name: Install Windows test app | ||
run: | | ||
yarn install-windows-test-app -p example/windows | ||
working-directory: packages/default-storage-backend | ||
- name: Build | ||
run: | | ||
yarn react-native run-windows --release --arch x64 --logging --no-packager --no-launch --no-deploy --msbuildprops "BundleEntryFile=index.ts" --no-telemetry | ||
working-directory: packages/default-storage-backend | ||
|
||
release: | ||
name: Release | ||
|
@@ -168,3 +177,4 @@ jobs: | |
git config user.email ${{ secrets.GH_BOT_EMAIL }} | ||
git config user.name ${{ secrets.GH_BOT_NAME }} | ||
yarn semantic-release | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note for later: We should look into replacing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sweet, will remember that 🙏 |
||
working-directory: packages/default-storage-backend |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use prefixes so packages get grouped together? I.e.
storage-backend-*
,storage-core
, etc.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought more about TYPE_OF_STORAGE-storage-backend convention. We already have other storage called
sqlite-storage-backend
. Besides, I don't think we will have more storages in this monorepo anywayUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would look a lot nicer in the directory if we stick to the storage-<category>-<implementation> convention though:
But I suppose we could also change this later, so I'll let you decide.