Skip to content

Commit

Permalink
setup working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran committed Nov 19, 2024
1 parent ee3d90e commit a6543a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ jobs:
# https://github.com/creyD/prettier_action?tab=readme-ov-file#example-4-dry-run
prettier:
runs-on: ubuntu-latest
defaults:
run:
working-directory: sdk
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -41,6 +38,7 @@ jobs:
- name: Prettify code
uses: creyD/[email protected]
with:
working_directory: sdk
# "dry" causes that if any file is modified, the job fails
dry: True
# "write" performs changes in place
Expand Down
4 changes: 2 additions & 2 deletions sdk/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
presets: ["module:metro-react-native-babel-preset"],
plugins: ["babel-plugin-syntax-hermes-parser"],
presets: ['module:metro-react-native-babel-preset'],
plugins: ['babel-plugin-syntax-hermes-parser']
};
6 changes: 4 additions & 2 deletions sdk/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
module.exports = {
preset: 'react-native',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { rootMode: 'upward' }],
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { rootMode: 'upward' }]
},
transformIgnorePatterns: [ 'node_modules/(?!(react-native|@react-native|react-navigation|@react-navigation|@react-native-community|@react-native-firebase|@react-navigation/stack|@react-navigation/bottom-tabs|@react-navigation/drawer|@react-navigation/native|@react-navigation/material-bottom-tabs|@react-navigation/material-top-tabs|@react-navigation/stack|@react-navigation/web))' ],
transformIgnorePatterns: [
'node_modules/(?!(react-native|@react-native|react-navigation|@react-navigation|@react-native-community|@react-native-firebase|@react-navigation/stack|@react-navigation/bottom-tabs|@react-navigation/drawer|@react-navigation/native|@react-navigation/material-bottom-tabs|@react-navigation/material-top-tabs|@react-navigation/stack|@react-navigation/web))'
],
setupFiles: ['./__mocks__/RaygunNativeBridge.js']
};
2 changes: 1 addition & 1 deletion sdk/react-native.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
platforms: {
ios: {},
android: {
packageInstance: "new RaygunNativeBridgePackage()"
packageInstance: 'new RaygunNativeBridgePackage()'
}
}
}
Expand Down

0 comments on commit a6543a8

Please sign in to comment.