mirror of
https://github.com/different-ai/openwork
synced 2026-04-25 17:15:34 +02:00
102 lines
2.2 KiB
YAML
102 lines
2.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-web:
|
|
name: Build Web
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.27.0
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build web
|
|
run: pnpm --filter @openwork-ee/den-web build
|
|
|
|
build-den:
|
|
name: Build Den services
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.27.0
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build den-api
|
|
run: pnpm --filter @openwork-ee/den-api build
|
|
|
|
- name: Build den-worker-proxy
|
|
run: pnpm --filter @openwork-ee/den-worker-proxy build
|
|
|
|
build-orchestrator-binary:
|
|
name: Build openwork orchestrator binary
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.27.0
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: 1.3.9
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Typecheck openwork-orchestrator
|
|
run: pnpm --filter openwork-orchestrator typecheck
|
|
|
|
- name: Build openwork orchestrator binary
|
|
run: pnpm --filter openwork-orchestrator build:bin
|
|
|
|
- name: Validate compiled binary
|
|
run: |
|
|
./apps/orchestrator/dist/bin/openwork --version
|
|
./apps/orchestrator/dist/bin/openwork --help >/dev/null
|