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
42 changes: 27 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [main, develop]
branches: [master, develop]
pull_request:
branches: [main, develop]
branches: [master, develop]

jobs:
build-and-test:
Expand All @@ -27,14 +27,23 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build packages
run: npm run build
- name: Build packages (only published packages)
run: |
npm run build:shared
npm run build:core
npm run build:cli

- name: Run linter
run: npm run lint --if-present
- name: Run linter (only published packages)
run: |
npm run lint --workspace=packages/shared --if-present
npm run lint --workspace=packages/core --if-present
npm run lint --workspace=packages/cli --if-present

- name: Run tests
run: npm test --if-present
- name: Run tests (only published packages)
run: |
npm test --workspace=packages/shared --if-present
npm test --workspace=packages/core --if-present
npm test --workspace=packages/cli --if-present

- name: Check package integrity
run: |
Expand Down Expand Up @@ -68,18 +77,21 @@ jobs:
- name: Install Node dependencies
run: npm ci

- name: Build packages
run: npm run build
- name: Build packages (only published packages)
run: |
npm run build:shared
npm run build:core
npm run build:cli

- name: Create test project
- name: Build Android client
run: |
npx jetstart create test-ci-app --package com.jetstart.ci
cd test-ci-app
cd packages/client
chmod +x gradlew
./gradlew assembleDebug --no-daemon

- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: test-app-debug
path: test-ci-app/app/build/outputs/apk/debug/app-debug.apk
name: jetstart-client-debug
path: packages/client/app/build/outputs/apk/debug/app-debug.apk
retention-days: 7
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ pnpm-debug.log*
*.dex
*.class
bin/
!packages/cli/bin/
gen/
out/
.gradle/
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/phantom/jetstart.git"
"url": "https://github.com/dev-phantom/jetstart.git"
},
"keywords": [
"android",
Expand All @@ -41,11 +41,11 @@
"mobile-development"
],
"author": "Phantom",
"license": "Apache-2.0",
"license": "MIT",
"bugs": {
"url": "https://github.com/phantom/jetstart/issues"
"url": "https://github.com/dev-phantom/jetstart/issues"
},
"homepage": "https://github.com/phantom/jetstart#readme",
"homepage": "https://github.com/dev-phantom/jetstart#readme",
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/cli/bin/jetstart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('../dist/cli.js');
11 changes: 10 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@
"jetpack-compose"
],
"author": "Phantom",
"license": "Apache-2.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dev-phantom/jetstart.git",
"directory": "packages/cli"
},
"bugs": {
"url": "https://github.com/dev-phantom/jetstart/issues"
},
"homepage": "https://github.com/dev-phantom/jetstart#readme",
"dependencies": {
"@jetstart/shared": "0.1.0",
"axios": "^1.6.2",
Expand Down
11 changes: 10 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,16 @@
"websocket"
],
"author": "Phantom",
"license": "Apache-2.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dev-phantom/jetstart.git",
"directory": "packages/core"
},
"bugs": {
"url": "https://github.com/dev-phantom/jetstart/issues"
},
"homepage": "https://github.com/dev-phantom/jetstart#readme",
"dependencies": {
"@jetstart/shared": "0.1.0",
"express": "^4.18.2",
Expand Down
11 changes: 10 additions & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@
"protocols"
],
"author": "Phantom",
"license": "Apache-2.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/dev-phantom/jetstart.git",
"directory": "packages/shared"
},
"bugs": {
"url": "https://github.com/dev-phantom/jetstart/issues"
},
"homepage": "https://github.com/dev-phantom/jetstart#readme",
"devDependencies": {
"@types/jest": "29.5.14",
"@types/node": "^20.10.0",
Expand Down