Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/react-native-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- prod-apk
- prod-aab
- ios-dev
- ios-adhoc
- ios-prod
- all
platform:
Expand Down Expand Up @@ -180,6 +181,14 @@ jobs:
env:
NODE_ENV: development

- name: 📱 Build iOS Ad-Hoc
if: (github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'ios-adhoc') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
run: |
export NODE_OPTIONS="--openssl-legacy-provider --max_old_space_size=4096"
eas build --platform ios --profile internal --local --non-interactive --output=./app-ios-adhoc.app
env:
NODE_ENV: production

- name: 📱 Build iOS Production
if: (github.event.inputs.buildType == 'all' || github.event.inputs.buildType == 'ios-prod') && (matrix.platform == 'ios' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'ios')
run: |
Expand Down
15 changes: 15 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
},
"build": {
"production": {
"distribution": "store",
"pnpm": "9.12.3",
"ios": {
"image": "latest"
},
"android": {
"image": "latest"
},
"env": {
"EXPO_NO_DOTENV": "1",
"APP_ENV": "production",
"FLIPPER_DISABLE": "1"
}
},
"production-apk": {
"distribution": "store",
"pnpm": "9.12.3",
"ios": {
Expand Down
28 changes: 26 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,35 @@ module.exports = {
preset: 'jest-expo',
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/coverage/**', '!**/node_modules/**', '!**/babel.config.js', '!**/jest.setup.js', '!**/docs/**', '!**/cli/**'],
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/coverage/**', '!**/node_modules/**', '!**/babel.config.js', '!**/jest.setup.js', '!**/docs/**', '!**/cli/**', '!**/ios/**', '!**/android/**'],
moduleFileExtensions: ['js', 'ts', 'tsx'],
moduleDirectories: ['node_modules', '<rootDir>/'],
transformIgnorePatterns: [
`node_modules/(?!(?:.pnpm/)?((jest-)?react-native|@react-native(-community)?|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|@sentry/.*|native-base|react-native-svg|@gluestack-ui/.*|lucide-react-native|@tanstack/.*|moti|nativewind|tailwind-variants|@react-native-aria/.*))`,
'node_modules/(?:\.pnpm|\.store)',
'node_modules/(?!jest-react-native)',
'node_modules/(?!react-native)',
'node_modules/(?!@react-native)',
'node_modules/(?!@react-native-community)',
'node_modules/(?!expo)',
'node_modules/(?!exponent)',
'node_modules/(?!@expo)',
'node_modules/(?!@exponent)',
'node_modules/(?!@expo-google-fonts)',
'node_modules/(?!react-navigation)',
'node_modules/(?!@react-navigation)',
'node_modules/(?!@unimodules)',
'node_modules/(?!unimodules)',
'node_modules/(?!@sentry)',
'node_modules/(?!native-base)',
'node_modules/(?!react-native-svg)',
'node_modules/(?!lucide-react-native)',
'node_modules/(?!@tanstack)',
'node_modules/(?!moti)',
'node_modules/(?!nativewind)',
'node_modules/(?!tailwind-variants)',
'node_modules/(?!@react-native-aria)',
'node_modules/(?!@gluestack-ui)',
],
coverageReporters: ['json-summary', ['text', { file: 'coverage.txt' }]],
reporters: [
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"type-check": "tsc --noemit",
"lint:translations": "eslint ./src/translations/ --fix --ext .json ",
"test": "jest",
"check-all": "pnpm run lint && pnpm run type-check && pnpm run lint:translations && pnpm run test",
"check-all": "pnpm run lint && pnpm run type-check && pnpm run lint:translations",
"test:ci": "pnpm run test --coverage",
"test:watch": "pnpm run test --watch",
"install-maestro": "curl -Ls 'https://get.maestro.mobile.dev' | bash",
Expand Down Expand Up @@ -110,6 +110,7 @@
"expo-status-bar": "~2.0.0",
"expo-system-ui": "~4.0.9",
"expo-task-manager": "^12.0.6",
"geojson": "^0.5.0",
"i18next": "^23.14.0",
"lodash.memoize": "^4.1.2",
"lucide-react-native": "^0.475.0",
Expand Down Expand Up @@ -150,15 +151,16 @@
"@dev-plugins/react-query": "^0.2.0",
"@expo/config": "~10.0.3",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react-native": "^12.7.2",
"@testing-library/react-native": "^12.9.0",
"@types/geojson": "^7946.0.16",
"@types/i18n-js": "^3.8.9",
"@types/jest": "^29.5.12",
"@types/jest": "^29.5.14",
"@types/lodash.memoize": "^4.1.9",
"@types/react": "~18.3.12",
"@types/react-native-base64": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"babel-jest": "^30.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
Expand Down
Loading
Loading