mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-06 11:25:52 +00:00
Add Node.js server build to CI workflow
- Add dedicated job for building Node.js server - Use Node 20 on Ubuntu for the server build - Run npm ci, build, and tests for the web directory - Upload dist/ folder as build artifacts
This commit is contained in:
parent
f6893e1a61
commit
445187d754
1 changed files with 34 additions and 1 deletions
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
|
|
@ -11,8 +11,41 @@ env:
|
|||
DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
|
||||
|
||||
jobs:
|
||||
build-node-server:
|
||||
name: Build Node Server
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: web/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: web
|
||||
run: npm ci
|
||||
|
||||
- name: Build server
|
||||
working-directory: web
|
||||
run: npm run build
|
||||
|
||||
- name: Run tests
|
||||
working-directory: web
|
||||
run: npm test
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: node-server-build
|
||||
path: web/dist/
|
||||
|
||||
build-and-test:
|
||||
name: Build and Test
|
||||
name: Build and Test macOS App
|
||||
runs-on: macos-15
|
||||
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Reference in a new issue