Skip to content

Commit 83888f4

Browse files
committed
Merge tag 'v0.3.1' into develop
no message
2 parents f71d72f + 81892a1 commit 83888f4

File tree

4 files changed

+100
-5
lines changed

4 files changed

+100
-5
lines changed

.actrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--container-architecture linux/amd64
2+
-P ubuntu-latest=catthehacker/ubuntu:act-latest
3+
# Using Ubuntu for Windows testing since Windows containers aren't readily available for act
4+
-P windows-latest=catthehacker/ubuntu:act-latest
5+
-P macos-latest=catthehacker/ubuntu:act-latest

.github/workflows/test-local.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Local Tests
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
test-local:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20.x'
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run linter
27+
run: npm run lint
28+
29+
- name: Run unit tests
30+
run: npm run test:coverage
31+
32+
- name: Test CLI build
33+
run: |
34+
npm run build
35+
node dist/index.js --help
36+
37+
- name: Test CLI version
38+
run: node dist/index.js --version
39+
40+
- name: Run integration tests
41+
run: npm run test -- tests/integration/
42+
43+
- name: Test CLI in real scenarios
44+
run: |
45+
# Create a temporary React Native project structure
46+
mkdir -p temp-rn-project/android/app
47+
mkdir -p temp-rn-project/ios/TestApp.xcodeproj
48+
49+
# Create package.json
50+
cat > temp-rn-project/package.json << 'EOF'
51+
{
52+
"name": "temp-rn-project",
53+
"version": "1.0.0",
54+
"private": true,
55+
"dependencies": {
56+
"react": "18.2.0",
57+
"react-native": "0.73.0"
58+
}
59+
}
60+
EOF
61+
62+
# Create Android build.gradle
63+
cat > temp-rn-project/android/app/build.gradle << 'EOF'
64+
android {
65+
defaultConfig {
66+
versionCode 1
67+
versionName "1.0.0"
68+
}
69+
}
70+
EOF
71+
72+
# Create iOS project.pbxproj
73+
cat > temp-rn-project/ios/TestApp.xcodeproj/project.pbxproj << 'EOF'
74+
{
75+
buildSettings = {
76+
CURRENT_PROJECT_VERSION = 1;
77+
MARKETING_VERSION = 1.0.0;
78+
};
79+
}
80+
EOF
81+
82+
# Test CLI commands
83+
cd temp-rn-project
84+
node ../dist/index.js --dry-run --android --increment patch
85+
node ../dist/index.js --dry-run --ios --increment minor
86+
node ../dist/index.js --dry-run --build-numbers
87+
88+
# Clean up
89+
cd ..
90+
rm -rf temp-rn-project

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ npm test
185185

186186
## 📦 Requirements
187187

188-
- **Node.js**: 16.0.0 or higher
188+
- **Node.js**: 20.0.0 or higher
189189
- **React Native project** with standard structure
190190
- **Platform files**: `android/app/build.gradle` and/or `ios/*.xcodeproj/project.pbxproj`
191191

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-vbump",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A CLI tool to automatically increment version numbers for React Native projects",
55
"license": "MIT",
66
"author": "June Domingo <june.domingo@gmail.com>",
@@ -58,10 +58,10 @@
5858
},
5959
"repository": {
6060
"type": "git",
61-
"url": "https://github.com/yourusername/react-native-version-up.git"
61+
"url": "https://github.com/junedomingo/react-native-vbump.git"
6262
},
6363
"bugs": {
64-
"url": "https://github.com/yourusername/react-native-version-up/issues"
64+
"url": "https://github.com/junedomingo/react-native-vbump/issues"
6565
},
66-
"homepage": "https://github.com/yourusername/react-native-version-up#readme"
66+
"homepage": "https://github.com/junedomingo/react-native-vbump#readme"
6767
}

0 commit comments

Comments
 (0)